From 16d69ff7aad562784c476bb44ce618a3faf52cdd Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sat, 29 Jul 2017 07:36:04 +0000 Subject: Fix Fl_Screen_Driver::read_image() that was not correct with scaling factor < 1. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12365 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Screen_Driver.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_Screen_Driver.cxx b/src/Fl_Screen_Driver.cxx index 31dc68152..822500a42 100644 --- a/src/Fl_Screen_Driver.cxx +++ b/src/Fl_Screen_Driver.cxx @@ -154,7 +154,7 @@ uchar *Fl_Screen_Driver::read_image(uchar *p, int X, int Y, int w, int h, int al img = traverse_to_gl_subwindows(Fl_Window::current(), p, X, Y, w, h, alpha, NULL); } if (img) { - if (img->w() > w) { + if (img->w() != w) { Fl_RGB_Image *img2 = (Fl_RGB_Image*)img->copy(w, h); delete img; img = img2; -- cgit v1.2.3