summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2013-05-13 16:53:59 +0000
committerManolo Gouy <Manolo>2013-05-13 16:53:59 +0000
commit75076f6a402992feede1a04645fd1454f8bf2f7b (patch)
treed21d996a21e78ea0a77f6957e5a10f2794b3c55a
parent538f0d1d82f4b768790c603b92d3cfd578b29b20 (diff)
Fixes a MSWindows' specific bug where GL windows where not printed at their correct location.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9915 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--src/Fl_Paged_Device.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Fl_Paged_Device.cxx b/src/Fl_Paged_Device.cxx
index 8a30c8a70..8887d9703 100644
--- a/src/Fl_Paged_Device.cxx
+++ b/src/Fl_Paged_Device.cxx
@@ -62,8 +62,11 @@ void Fl_Paged_Device::print_widget(Fl_Widget* widget, int delta_x, int delta_y)
Fl_Plugin_Manager pm("fltk:device");
Fl_Device_Plugin *pi = (Fl_Device_Plugin*)pm.plugin("opengl.device.fltk.org");
if (pi) {
- int width, height;
+ int height = 0;
+#ifdef _APPLE__
+ int width;
this->printable_rect(&width, &height);
+#endif
drawn_by_plugin = pi->print(widget, 0, 0, height);
}
}