summaryrefslogtreecommitdiff
path: root/src/Fl_x.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_x.cxx')
-rw-r--r--src/Fl_x.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx
index 93ef26d78..6a07175b4 100644
--- a/src/Fl_x.cxx
+++ b/src/Fl_x.cxx
@@ -616,7 +616,7 @@ void Fl_X11_Screen_Driver::open_display() {
fl_open_display(d);
// the unique GC used by all X windows
GC gc = XCreateGC(fl_display, RootWindow(fl_display, fl_screen), 0, 0);
- Fl_Display_Device::display_device()->driver()->gc(gc);
+ Fl_Graphics_Driver::default_driver().gc(gc);
}