summaryrefslogtreecommitdiff
path: root/src/Fl_x.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2011-02-02 11:29:18 +0000
committerManolo Gouy <Manolo>2011-02-02 11:29:18 +0000
commitbb29437427d44ee47ab1039f0bab3b66fdb40b62 (patch)
treee6394dc434ab7943828330b23ef149f7cd365733 /src/Fl_x.cxx
parent864918b6b2d65284e954c5ff9786c2f465e10923 (diff)
Removed global variable fl_display_device that was not very useful because equivalent
to Fl_Display_Device::display_device(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8359 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_x.cxx')
-rw-r--r--src/Fl_x.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx
index 81e1bcf0c..a00b4ac13 100644
--- a/src/Fl_x.cxx
+++ b/src/Fl_x.cxx
@@ -53,9 +53,9 @@
static Fl_Xlib_Graphics_Driver fl_xlib_driver;
static Fl_Display_Device fl_xlib_display(&fl_xlib_driver);
-FL_EXPORT Fl_Display_Device *fl_display_device = (Fl_Display_Device*)&fl_xlib_display; // does not change
FL_EXPORT Fl_Graphics_Driver *fl_graphics_driver = (Fl_Graphics_Driver*)&fl_xlib_driver; // the current target device of graphics operations
-FL_EXPORT Fl_Surface_Device *fl_surface = (Fl_Surface_Device*)fl_display_device; // the current target surface of graphics operations
+FL_EXPORT Fl_Surface_Device *fl_surface = (Fl_Surface_Device*)&fl_xlib_display; // the current target surface of graphics operations
+Fl_Display_Device *Fl_Display_Device::display_device() { return &fl_xlib_display; };
////////////////////////////////////////////////////////////////
// interface to poll/select call: