Fix Fl_Widget_Surface::print_window_part() that was not correct for scaling factor values < 1.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12366 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
16d69ff7aa
commit
5a7a954ebd
@ -159,7 +159,7 @@ void Fl_Widget_Surface::print_window_part(Fl_Window *win, int x, int y, int w, i
|
||||
win->driver()->flush(); // makes the window current
|
||||
const uchar *image_data;
|
||||
Fl_RGB_Image *img = Fl_Screen_Driver::traverse_to_gl_subwindows(win, NULL, x, y, w, h, 0, NULL);
|
||||
if (img->w() > w) {
|
||||
if (img->w() != w) {
|
||||
Fl_RGB_Image *img2 = (Fl_RGB_Image*)img->copy(w, h);
|
||||
delete img;
|
||||
img = img2;
|
||||
|
Loading…
Reference in New Issue
Block a user