diff options
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Device.H | 4 | ||||
| -rw-r--r-- | FL/Fl_Graphics_Driver.H | 3 | ||||
| -rw-r--r-- | FL/mac.H | 1 |
3 files changed, 3 insertions, 5 deletions
diff --git a/FL/Fl_Device.H b/FL/Fl_Device.H index 26624487e..58c02a29e 100644 --- a/FL/Fl_Device.H +++ b/FL/Fl_Device.H @@ -81,14 +81,12 @@ public: There is no need to create any other object of this class. */ class FL_EXPORT Fl_Display_Device : public Fl_Surface_Device { - friend class Fl_X; friend class Fl_Graphics_Driver; static Fl_Display_Device *_display; // the platform display device - static bool high_res_window_; //< true when drawing to a window of a retina display (Mac OS X only) public: Fl_Display_Device(Fl_Graphics_Driver *graphics_driver); static Fl_Display_Device *display_device(); - static bool high_resolution() {return high_res_window_;} + static bool high_resolution(); }; /** diff --git a/FL/Fl_Graphics_Driver.H b/FL/Fl_Graphics_Driver.H index 51859b5c1..de54c72e3 100644 --- a/FL/Fl_Graphics_Driver.H +++ b/FL/Fl_Graphics_Driver.H @@ -249,7 +249,8 @@ public: virtual void add_rectangle_to_region(Fl_Region r, int x, int y, int w, int h); virtual Fl_Region XRectangleRegion(int x, int y, int w, int h); virtual void XDestroyRegion(Fl_Region r); - + // the default implementation may be enough + virtual bool high_resolution() { return false; } protected: // --- implementation is in src/fl_vertex.cxx which includes src/cfg_gfx/xxx_rect.cxx virtual void global_gc(); @@ -130,7 +130,6 @@ public: static Fl_X* first; static Fl_X* i(const Fl_Window* w) {return (Fl_X*)w->i;} static void make(Fl_Window*); - static void set_high_resolution(bool); CGRect* subRect() { return subRect_; } // getter void subRect(CGRect *r) { subRect_ = r; } // setter bool mapped_to_retina(); // is window mapped to retina display? |
