From 7e9cdfca2c719b01d4fdf0399dfe267d8641ae57 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Sat, 29 Nov 2008 17:27:38 +0000 Subject: [PATCH] *** empty log message *** --- Common/Options.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Common/Options.cpp b/Common/Options.cpp index 11dd79b05f..80bdd1f60f 100644 --- a/Common/Options.cpp +++ b/Common/Options.cpp @@ -2410,7 +2410,7 @@ double opt_general_viewport2(OPT_ARGS_NUM) #if defined(HAVE_FLTK) if(WID){ if(action & GMSH_SET) - WID->g_opengl_window->getDrawContext()->viewport[2] = val; + WID->g_opengl_window->getDrawContext()->viewport[2] = (int)val; return WID->g_opengl_window->getDrawContext()->viewport[2]; } #endif @@ -2424,7 +2424,7 @@ double opt_general_viewport3(OPT_ARGS_NUM) #if defined(HAVE_FLTK) if(WID){ if(action & GMSH_SET) - WID->g_opengl_window->getDrawContext()->viewport[3] = val; + WID->g_opengl_window->getDrawContext()->viewport[3] = (int)val; return WID->g_opengl_window->getDrawContext()->viewport[3]; } #endif -- GitLab