Skip to content

Commit

Permalink
Fix Fl_Widget_Surface::print_window_part() that was not correct for s…
Browse files Browse the repository at this point in the history
…caling factor values < 1.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12366 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Manolo Gouy authored and Manolo Gouy committed Jul 30, 2017
1 parent 16d69ff commit 5a7a954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fl_Widget_Surface.cxx
Expand Up @@ -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;
Expand Down

0 comments on commit 5a7a954

Please sign in to comment.