mirror of
https://github.com/fltk/fltk.git
synced 2026-05-21 14:31:40 +08:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user