From 6d766cc6814a9e7a04c0b147c7a3cbdc0817dfd4 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 19 Feb 2016 11:52:45 +0000 Subject: Update the fl_gc global variable also when Fl_Graphics_Driver::set_gc() is called. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11190 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/drivers/Xlib/Fl_Xlib_Graphics_Driver.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/drivers/Xlib') diff --git a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.cxx b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.cxx index b9ac31eff..0a7950388 100644 --- a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.cxx +++ b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.cxx @@ -37,7 +37,6 @@ GC fl_gc = 0; void Fl_Graphics_Driver::global_gc() { - fl_gc = (GC)get_gc(); } @@ -57,6 +56,7 @@ Fl_Xlib_Graphics_Driver::Fl_Xlib_Graphics_Driver(void) { fl_open_display(); // the unique GC used by all X windows gc = XCreateGC(fl_display, RootWindow(fl_display, fl_screen), 0, 0); + fl_gc = gc; } } -- cgit v1.2.3