From 96d8c5b7fe4008d8335be04666b60a92db63d2f6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=B4me=20Chilliet?= Date: Sat, 19 Nov 2016 23:43:22 +0800 Subject: [PATCH] Fixed nomousegrab option Fixes #5 --- Source/OpenGL_Windows.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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(); -- 2.39.5