Skip to content

Commit

Permalink
Fix Fl_Screen_Driver::read_image() that was not correct with scaling …
Browse files Browse the repository at this point in the history
…factor < 1.

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

0 comments on commit 16d69ff

Please sign in to comment.