From 2fcb4f419217eb2895ad0e52b15aab252eb827ef Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 15 Apr 2016 15:36:10 +0000 Subject: Move platform-dependent implementations of fl_open/close_display() to the Fl_Screen_Driver class git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11619 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.H | 1 + src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/drivers/Cocoa') diff --git a/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.H b/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.H index eea642760..4cde863d7 100644 --- a/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.H +++ b/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.H @@ -93,6 +93,7 @@ public: virtual void get_mouse(int &x, int &y); virtual void enable_im(); virtual void disable_im(); + virtual void open_display(); }; diff --git a/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx b/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx index 270660ea5..8c3f47d47 100644 --- a/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx +++ b/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx @@ -218,7 +218,7 @@ static void set_selection_color(uchar r, uchar g, uchar b) // look-n-feel... void Fl_Cocoa_Screen_Driver::get_system_colors() { - fl_open_display(); + open_display(); if (!bg2_set) Fl::background2(0xff, 0xff, 0xff); if (!fg_set) Fl::foreground(0, 0, 0); -- cgit v1.2.3