diff --git a/Common/Options.cpp b/Common/Options.cpp index 11dd79b05f54fe52e30327a4412a16890160a017..80bdd1f60f97bfe960f01a4c2fc5d4af425f2ca0 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