diff options
| -rw-r--r-- | FL/Fl_Device.H | 7 | ||||
| -rw-r--r-- | src/Fl_Device.cxx | 6 |
2 files changed, 3 insertions, 10 deletions
diff --git a/FL/Fl_Device.H b/FL/Fl_Device.H index 58c02a29e..22328ddd9 100644 --- a/FL/Fl_Device.H +++ b/FL/Fl_Device.H @@ -77,14 +77,11 @@ public: /** A display to which the computer can draw. - When the program begins running, an Fl_Display_Device instance has been created and made the current drawing surface. - There is no need to create any other object of this class. + When the program begins running, an object of class Fl_Display_Device has been created and made the current drawing surface. */ class FL_EXPORT Fl_Display_Device : public Fl_Surface_Device { - friend class Fl_Graphics_Driver; - static Fl_Display_Device *_display; // the platform display device -public: Fl_Display_Device(Fl_Graphics_Driver *graphics_driver); +public: static Fl_Display_Device *display_device(); static bool high_resolution(); }; diff --git a/src/Fl_Device.cxx b/src/Fl_Device.cxx index dd2053f56..348d00e45 100644 --- a/src/Fl_Device.cxx +++ b/src/Fl_Device.cxx @@ -72,7 +72,7 @@ Fl_Display_Device::Fl_Display_Device(Fl_Graphics_Driver *graphics_driver) : Fl_S }; -/** Returns the platform display device. */ +/** Returns a pointer to the unique display device */ Fl_Display_Device *Fl_Display_Device::display_device() { static Fl_Display_Device *display = new Fl_Display_Device(Fl_Graphics_Driver::newMainGraphicsDriver()); return display; @@ -89,10 +89,6 @@ Fl_Surface_Device *Fl_Surface_Device::default_surface() return Fl_Display_Device::display_device(); } - -Fl_Display_Device *Fl_Display_Device::_display; - - // // End of "$Id$". // |
