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
This commit is contained in:
Manolo Gouy
2013-05-13 16:53:59 +00:00
parent 538f0d1d82
commit 75076f6a40
+4 -1
View File
@@ -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);
}
}