From 895c942289c81ca24346d3bb18d2b922ae469554 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 8 May 2013 14:56:19 +0200 Subject: Remove GlobalContext class. Move all native code from EventHandler class to NativeWindowX11 and NativeWindowWin32 classes. --- plugingui/painter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugingui/painter.cc') diff --git a/plugingui/painter.cc b/plugingui/painter.cc index 9e5b052..842ff11 100644 --- a/plugingui/painter.cc +++ b/plugingui/painter.cc @@ -176,7 +176,7 @@ void GUI::Painter::clear() void GUI::Painter::drawText(int x0, int y0, GUI::Font &font, std::string text, bool nocolour) { - PixelBufferAlpha *textbuf = font.render(widget->window()->gctx, text); + PixelBufferAlpha *textbuf = font.render(text); if(nocolour) { for(size_t x = 0; x < textbuf->width; x++) { for(size_t y = 0; y < textbuf->height; y++) { -- cgit v1.2.3