summaryrefslogtreecommitdiff
path: root/src/Fl_Abstract_Printer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_Abstract_Printer.cxx')
-rw-r--r--src/Fl_Abstract_Printer.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Fl_Abstract_Printer.cxx b/src/Fl_Abstract_Printer.cxx
index e36758d34..0490dcc68 100644
--- a/src/Fl_Abstract_Printer.cxx
+++ b/src/Fl_Abstract_Printer.cxx
@@ -66,7 +66,11 @@ void Fl_Abstract_Printer::print_widget(Fl_Widget* widget, int delta_x, int delta
if (widget->as_gl_window()) {
Fl_Plugin_Manager pm("fltk:device");
Fl_Device_Plugin *pi = (Fl_Device_Plugin*)pm.plugin("opengl.device.fltk.org");
- if (pi) drawn_by_plugin = pi->print(this, widget, 0, 0);
+ if (pi) {
+ int width, height;
+ this->printable_rect(&width, &height);
+ drawn_by_plugin = pi->print(widget, 0, 0, height);
+ }
}
if (!drawn_by_plugin) {
widget->draw();