summaryrefslogtreecommitdiff
path: root/src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-02-21 19:15:22 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-02-21 19:15:39 +0100
commite387dbd30c81d27e67a33a580578ea846ff25250 (patch)
treeee66686a426d0f0e8cbcf635b78e9f52a14f2052 /src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx
parent842cbf0f1023f798362ab77aef34da23a24490b7 (diff)
Remove VS compilation warning messages about implicit type conversions.
Diffstat (limited to 'src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx')
-rw-r--r--src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx2
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 48a185410..27360ccee 100644
--- a/src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx
+++ b/src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx
@@ -61,7 +61,7 @@ Fl_RGB_Image* Fl_Gl_Window_Driver::capture_gl_rectangle(int x, int y, int w, int
int ns = Fl_Window_Driver::driver(glw)->screen_num();
float s = Fl::screen_driver()->scale(ns);
if (s != 1) {
- x *= s; y *= s; w *= s; h *= s;
+ x = int(x * s); y = int(y * s); w = int(w * s); h = int(h * s);
}
// Read a block of pixels from the frame buffer
int mByteWidth = w * 3;