From: Ryan C. Gordon Date: Tue, 23 Aug 2005 03:45:48 +0000 (+0000) Subject: Don't lock mouse if video mode couldn't be set. Fixes i.o Bugzilla #2344. X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=091b2db0b9332d78c3063b0383f6e6527d91055a;p=lugaru.git Don't lock mouse if video mode couldn't be set. Fixes i.o Bugzilla #2344. --- diff --git a/Source/OpenGL_Windows.cpp b/Source/OpenGL_Windows.cpp index 30b0312..cb74c6c 100644 --- a/Source/OpenGL_Windows.cpp +++ b/Source/OpenGL_Windows.cpp @@ -891,9 +891,6 @@ Boolean SetUp (Game & game) SDL_WM_SetCaption("Lugaru", "lugaru"); - if (!cmdline("nomousegrab")) - SDL_WM_GrabInput(SDL_GRAB_ON); - SDL_ShowCursor(0); if (SDL_SetVideoMode(kContextWidth, kContextHeight, 0, sdlflags) == NULL) @@ -902,6 +899,8 @@ Boolean SetUp (Game & game) return false; } + if (!cmdline("nomousegrab")) + SDL_WM_GrabInput(SDL_GRAB_ON); #elif (defined WIN32) //------------------------------------------------------------------