summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2011-02-28 17:57:19 +0000
committerManolo Gouy <Manolo>2011-02-28 17:57:19 +0000
commit1a4fd8ecc3e7b16fcedca72a0f6326edf3feb06a (patch)
treec5c171ba7f1ca31a34583b7545ac1ea752ee1efd
parent8c9d34facfdc630a6a147e639a7eeb4938e745a9 (diff)
The Mac OS Fl_Display_Device constructor now calls fl_open_display(). Thus, all
Mac-specific initializations will be done even before main() is started. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8487 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--FL/Fl_Device.H6
1 files changed, 5 insertions, 1 deletions
diff --git a/FL/Fl_Device.H b/FL/Fl_Device.H
index 953d9fb4b..630259059 100644
--- a/FL/Fl_Device.H
+++ b/FL/Fl_Device.H
@@ -517,7 +517,11 @@ public:
static const char *class_id;
const char *class_name() {return class_id;};
/** \brief A constructor that sets the graphics driver used by the display */
- Fl_Display_Device(Fl_Graphics_Driver *graphics_driver) : Fl_Surface_Device( graphics_driver) { };
+ Fl_Display_Device(Fl_Graphics_Driver *graphics_driver) : Fl_Surface_Device( graphics_driver) {
+#ifdef __APPLE__
+ fl_open_display();
+#endif
+ };
/** Returns the platform display device. */
static inline Fl_Display_Device *display_device() {return _display;};
};