summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
Diffstat (limited to 'FL')
-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;};
};