Author: manolo
Date: 2011-02-28 09:57:19 -0800 (Mon, 28 Feb 2011)
New Revision: 8487
Log:
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.

Modified:
   branches/branch-1.3/FL/Fl_Device.H

Modified: branches/branch-1.3/FL/Fl_Device.H
===================================================================
--- branches/branch-1.3/FL/Fl_Device.H  2011-02-28 17:48:55 UTC (rev 8486)
+++ branches/branch-1.3/FL/Fl_Device.H  2011-02-28 17:57:19 UTC (rev 8487)
@@ -517,7 +517,11 @@
   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;};
 };

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to