From: Côme Chilliet Date: Sat, 19 Nov 2016 15:43:22 +0000 (+0800) Subject: Fixed nomousegrab option X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=96d8c5b7fe4008d8335be04666b60a92db63d2f6;p=lugaru.git Fixed nomousegrab option Fixes #5 --- diff --git a/Source/OpenGL_Windows.cpp b/Source/OpenGL_Windows.cpp index d74b557..433b8d1 100644 --- a/Source/OpenGL_Windows.cpp +++ b/Source/OpenGL_Windows.cpp @@ -410,9 +410,8 @@ Boolean SetUp () SDL_GL_SetSwapInterval(1); SDL_ShowCursor(0); - SDL_SetWindowGrab(sdlwindow, SDL_TRUE); - SDL_SetRelativeMouseMode(SDL_TRUE); - + if (!cmdline("nomousegrab")) + SDL_SetRelativeMouseMode(SDL_TRUE); initGL();