diff options
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; |
