summaryrefslogtreecommitdiff
path: root/src/drivers/Quartz/Fl_Quartz_Image_Surface_Driver.cxx
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 /src/drivers/Quartz/Fl_Quartz_Image_Surface_Driver.cxx
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 'src/drivers/Quartz/Fl_Quartz_Image_Surface_Driver.cxx')
-rw-r--r--src/drivers/Quartz/Fl_Quartz_Image_Surface_Driver.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/drivers/Quartz/Fl_Quartz_Image_Surface_Driver.cxx b/src/drivers/Quartz/Fl_Quartz_Image_Surface_Driver.cxx
index db01a3fe0..528548ea4 100644
--- a/src/drivers/Quartz/Fl_Quartz_Image_Surface_Driver.cxx
+++ b/src/drivers/Quartz/Fl_Quartz_Image_Surface_Driver.cxx
@@ -30,7 +30,6 @@ class Fl_Quartz_Image_Surface_Driver : public Fl_Image_Surface_Driver {
public:
Fl_Surface_Device *previous;
Window pre_window;
- int was_high;
Fl_Quartz_Image_Surface_Driver(int w, int h, int high_res);
~Fl_Quartz_Image_Surface_Driver();
void set_current();
@@ -81,8 +80,7 @@ void Fl_Quartz_Image_Surface_Driver::set_current() {
driver()->gc(offscreen);
fl_window = 0;
Fl_Surface_Device::set_current();
- was_high = Fl_Display_Device::high_resolution();
- Fl_X::set_high_resolution( CGBitmapContextGetWidth(offscreen) > width );
+ ((Fl_Quartz_Graphics_Driver*)driver())->high_resolution( CGBitmapContextGetWidth(offscreen) > width );
}
void Fl_Quartz_Image_Surface_Driver::translate(int x, int y) {
@@ -111,7 +109,6 @@ Fl_RGB_Image* Fl_Quartz_Image_Surface_Driver::image()
void Fl_Quartz_Image_Surface_Driver::end_current()
{
- Fl_X::set_high_resolution(was_high);
previous->Fl_Surface_Device::set_current();
fl_window = pre_window;
}