diff options
| author | Manolo Gouy <Manolo> | 2010-04-06 17:38:27 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2010-04-06 17:38:27 +0000 |
| commit | 24b8386bf18f0ae1b07b3126e4ef90d80064fd8c (patch) | |
| tree | 598971eeefe856fd559db77670e67f01ec1c6067 /src/Fl_Abstract_Printer.cxx | |
| parent | f44190d356137367367aeb5ac00fd48c133f0a60 (diff) | |
Fl_Gl_Device_Plugin: more device-independant API
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7458 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Abstract_Printer.cxx')
| -rw-r--r-- | src/Fl_Abstract_Printer.cxx | 6 |
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(); |
