summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-04-19 12:46:07 +0000
committerManolo Gouy <Manolo>2016-04-19 12:46:07 +0000
commit034cfc94a31b92a02454630da1edb27670633ebb (patch)
tree2790a839d1c2e4d5e37780b499f96c32167da902 /FL
parent366f4bfbc9e6d71e7b5fccf6d666d5dd3cab600c (diff)
Move Fl_X::set_high_resolution() to classes Fl_Graphics_Driver and Fl_Quartz_Graphics_Driver
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11656 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Device.H4
-rw-r--r--FL/Fl_Graphics_Driver.H3
-rw-r--r--FL/mac.H1
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();
diff --git a/FL/mac.H b/FL/mac.H
index f23bbf8b7..302783edb 100644
--- a/FL/mac.H
+++ b/FL/mac.H
@@ -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?