diff options
Diffstat (limited to 'src/drivers/GDI')
| -rw-r--r-- | src/drivers/GDI/Fl_GDI_Copy_Surface.H | 1 | ||||
| -rw-r--r-- | src/drivers/GDI/Fl_GDI_Copy_Surface.cxx | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/drivers/GDI/Fl_GDI_Copy_Surface.H b/src/drivers/GDI/Fl_GDI_Copy_Surface.H index 739bb4962..18b4f00f4 100644 --- a/src/drivers/GDI/Fl_GDI_Copy_Surface.H +++ b/src/drivers/GDI/Fl_GDI_Copy_Surface.H @@ -37,6 +37,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_GDI_Copy_Surface_h */ diff --git a/src/drivers/GDI/Fl_GDI_Copy_Surface.cxx b/src/drivers/GDI/Fl_GDI_Copy_Surface.cxx index bb05377ff..77203da73 100644 --- a/src/drivers/GDI/Fl_GDI_Copy_Surface.cxx +++ b/src/drivers/GDI/Fl_GDI_Copy_Surface.cxx @@ -18,9 +18,7 @@ #include "Fl_GDI_Copy_Surface.H" -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_Translated_GDI_Graphics_Driver); oldgc = (HDC)Fl_Surface_Device::surface()->driver()->gc(); // exact computation of factor from screen units to EnhMetaFile units (0.01 mm) |
