1
0
Fork 0

Auto unlocking of the mouse on exit.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@419
This commit is contained in:
Sjoerd van der Berg 2002-10-25 15:47:55 +00:00
parent f5103f9c94
commit 14577b3324

View file

@ -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");