From f7d7eff7ad584b22ef43211f833073e0dad5ff10 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Tue, 1 Mar 2011 11:58:36 +0000 Subject: STR 2580: Fl::add_fd() now calls fl_open_display() because that is necessary for the fd event to be recovered by the event loop. Before main() is called, only fl_mac_os_version is initialized. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8488 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Device.H | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'FL') diff --git a/FL/Fl_Device.H b/FL/Fl_Device.H index 630259059..0a5a49edc 100644 --- a/FL/Fl_Device.H +++ b/FL/Fl_Device.H @@ -517,11 +517,7 @@ 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) { -#ifdef __APPLE__ - fl_open_display(); -#endif - }; + Fl_Display_Device(Fl_Graphics_Driver *graphics_driver); /** Returns the platform display device. */ static inline Fl_Display_Device *display_device() {return _display;}; }; -- cgit v1.2.3