diff options
| author | Manolo Gouy <Manolo> | 2014-11-06 16:48:57 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2014-11-06 16:48:57 +0000 |
| commit | bd1446a6eb5b845179bb850c0f371a323141e8b0 (patch) | |
| tree | b1dd6983fc41879881452d9e91f89e2fadb636f5 /src/Fl_Paged_Device.cxx | |
| parent | f5e023f9c8a9b328b623804f67bbcb104dc7b6ff (diff) | |
Fix for STR#3142 where fl_read_image() correctly reads GL data under X11, but ignores them under MSWindows and Mac OS X.
Moreover, fl_read_image() behaves differently with and without OS virtualization for X11 and MSWindows.
The patched function reads whatever is in the rectangle transmitted in arguments, with and without GL data, with and without subwindows,
on ‘true’ OS or on virtualized OS.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10436 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Paged_Device.cxx')
| -rw-r--r-- | src/Fl_Paged_Device.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/Fl_Paged_Device.cxx b/src/Fl_Paged_Device.cxx index fcc18eab2..7f4d9d1a6 100644 --- a/src/Fl_Paged_Device.cxx +++ b/src/Fl_Paged_Device.cxx @@ -3,7 +3,7 @@ // // implementation of Fl_Paged_Device class for the Fast Light Tool Kit (FLTK). // -// Copyright 2010-2011 by Bill Spitzak and others. +// Copyright 2010-2014 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -63,12 +63,7 @@ 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 height = 0; -#ifdef __APPLE__ - int width; - this->printable_rect(&width, &height); -#endif - drawn_by_plugin = pi->print(widget, 0, 0, height); + drawn_by_plugin = pi->print(widget, 0, 0, 0); } } if (!drawn_by_plugin) { |
