From 14577b3324edb1b451da37edd942e9835b37afee Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Fri, 25 Oct 2002 15:47:55 +0000 Subject: [PATCH] Auto unlocking of the mouse on exit. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@419 --- src/gui/sdlmain.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gui/sdlmain.cpp b/src/gui/sdlmain.cpp index 0cab3716..0f864025 100644 --- a/src/gui/sdlmain.cpp +++ b/src/gui/sdlmain.cpp @@ -222,11 +222,10 @@ void GFX_Start() { sdl.active=true; } - static void GUI_ShutDown(Section * sec) { GFX_Stop(); + if (sdl.mouse.locked) CaptureMouse(); if (sdl.full_screen) SwitchFullScreen(); - } static void GUI_StartUp(Section * sec) { @@ -238,7 +237,6 @@ static void GUI_StartUp(Section * sec) { sdl.frames.skip=0; sdl.frames.count=0; sdl.draw=0; - sdl.mouse.locked=false; sdl.mouse.requestlock=false; sdl.mouse.autoenable=section->Get_bool("autolock");