summaryrefslogtreecommitdiff
path: root/src/gl_start.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/gl_start.cxx
parent842cbf0f1023f798362ab77aef34da23a24490b7 (diff)
Remove VS compilation warning messages about implicit type conversions.
Diffstat (limited to 'src/gl_start.cxx')
-rw-r--r--src/gl_start.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gl_start.cxx b/src/gl_start.cxx
index 9c13dac0a..15ec99168 100644
--- a/src/gl_start.cxx
+++ b/src/gl_start.cxx
@@ -77,7 +77,7 @@ void gl_start() {
if (fl_clip_box(0, 0, Fl_Window::current()->w(), Fl_Window::current()->h(),
x, y, w, h)) {
fl_clip_region(Fl_Graphics_Driver::default_driver().XRectangleRegion(x,y,w,h));
- glScissor(x*gl_start_scale, (Fl_Window::current()->h()-(y+h))*gl_start_scale, w*gl_start_scale, h*gl_start_scale);
+ glScissor(int(x*gl_start_scale), int((Fl_Window::current()->h()-(y+h))*gl_start_scale), int(w*gl_start_scale), int(h*gl_start_scale));
glEnable(GL_SCISSOR_TEST);
} else {
glDisable(GL_SCISSOR_TEST);