diff options
| author | Manolo Gouy <Manolo> | 2017-12-19 14:14:42 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-12-19 14:14:42 +0000 |
| commit | c44382e973ebb54396687892c43b92ac0655bbce (patch) | |
| tree | 6b9d90a122e7b21b530ba2c0086dc2bcbac230e4 /src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx | |
| parent | d8911c5603f1fcc6e3803ae3ad49b704d75cb49f (diff) | |
Scaling capability under MacOS platform: fix capture of scaled window.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12602 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx')
| -rw-r--r-- | src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx b/src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx index c65c6a3a1..5b1f8b1f8 100644 --- a/src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx +++ b/src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx @@ -64,7 +64,7 @@ static uchar *convert_BGRA_to_RGB(uchar *baseAddress, int w, int h, int mByteWid Fl_RGB_Image* Fl_OpenGL_Display_Device::capture_gl_rectangle(Fl_Gl_Window* glw, int x, int y, int w, int h) { float factor = glw->pixels_per_unit(); - if (factor > 1) { + if (factor != 1) { w *= factor; h *= factor; x *= factor; y *= factor; } glw->flush(); // forces a GL redraw, necessary for the glpuzzle demo |
