summaryrefslogtreecommitdiff
path: root/src/drivers/Quartz
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-03-02 12:36:37 +0000
committerManolo Gouy <Manolo>2016-03-02 12:36:37 +0000
commit39fdbecd1656ad10f76fe994824001ef94355ad4 (patch)
tree2ba00bbcbe19f8ad22e0ede38c16c9c259b0895d /src/drivers/Quartz
parentdf94673b6136b83b517cf360865791006d9311dc (diff)
Finalize new implementation of Fl_Copy_Surface.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11267 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/Quartz')
-rw-r--r--src/drivers/Quartz/Fl_Quartz_Copy_Surface.H1
-rw-r--r--src/drivers/Quartz/Fl_Quartz_Copy_Surface.cxx4
2 files changed, 2 insertions, 3 deletions
diff --git a/src/drivers/Quartz/Fl_Quartz_Copy_Surface.H b/src/drivers/Quartz/Fl_Quartz_Copy_Surface.H
index 3d7f4c6cf..45c3d4b41 100644
--- a/src/drivers/Quartz/Fl_Quartz_Copy_Surface.H
+++ b/src/drivers/Quartz/Fl_Quartz_Copy_Surface.H
@@ -40,6 +40,7 @@ private:
void untranslate();
int w() {return width;}
int h() {return height;}
+ int printable_rect(int *w, int *h) {*w = width; *h = height; return 0;}
};
#endif // FL_QUARTZ_COPY_SURFACE_H
diff --git a/src/drivers/Quartz/Fl_Quartz_Copy_Surface.cxx b/src/drivers/Quartz/Fl_Quartz_Copy_Surface.cxx
index 1606e7b2a..04b2c6def 100644
--- a/src/drivers/Quartz/Fl_Quartz_Copy_Surface.cxx
+++ b/src/drivers/Quartz/Fl_Quartz_Copy_Surface.cxx
@@ -23,9 +23,7 @@
#include "Fl_Quartz_Graphics_Driver.H"
#endif
-Fl_Copy_Surface::Helper::Helper(int w, int h) : Fl_Widget_Surface(NULL) {
- width = w;
- height = h;
+Fl_Copy_Surface::Helper::Helper(int w, int h) : Fl_Widget_Surface(NULL), width(w), height(h) {
driver(new Fl_Quartz_Graphics_Driver);
prepare_copy_pdf_and_tiff(w, h);
}