summaryrefslogtreecommitdiff
path: root/src/Fl_Screen_Driver.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2017-07-29 07:36:04 +0000
committerManolo Gouy <Manolo>2017-07-29 07:36:04 +0000
commit16d69ff7aad562784c476bb44ce618a3faf52cdd (patch)
tree0a583e9e9c4183eb050c62dd74717e6cab250c62 /src/Fl_Screen_Driver.cxx
parentc88466928db4ecdeb4e6c6eb84c873319d02ec7d (diff)
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
Diffstat (limited to 'src/Fl_Screen_Driver.cxx')
-rw-r--r--src/Fl_Screen_Driver.cxx2
1 files changed, 1 insertions, 1 deletions
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;