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:
parent
f5103f9c94
commit
14577b3324
1 changed files with 1 additions and 3 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue