diff options
| author | Manolo Gouy <Manolo> | 2017-07-30 15:19:36 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-07-30 15:19:36 +0000 |
| commit | 5a7a954ebd1005b30bbe48d84e4291c66ad30252 (patch) | |
| tree | 50642db81219553b5be2b4e9fee1fb757c0246f3 /src | |
| parent | 16d69ff7aad562784c476bb44ce618a3faf52cdd (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Widget_Surface.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Widget_Surface.cxx b/src/Fl_Widget_Surface.cxx index c7bcd93b1..4241bbc0c 100644 --- a/src/Fl_Widget_Surface.cxx +++ b/src/Fl_Widget_Surface.cxx @@ -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; |
