1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 15:52:55 +01:00

trap-mouse: cleanup

This commit is contained in:
Linus Unnebäck
2015-12-18 08:51:50 +01:00
parent 1a4ebcc0f7
commit e1938bb17a
2 changed files with 2 additions and 11 deletions

View File

@@ -596,12 +596,7 @@ static void window_options_mouseup(rct_window *w, int widgetIndex)
case WIDX_TRAP_CURSOR:
gConfigGeneral.trap_cursor ^= 1;
config_save_default();
if (gConfigGeneral.trap_cursor)
SDL_SetWindowGrab(gWindow, SDL_TRUE);
else
SDL_SetWindowGrab(gWindow, SDL_FALSE);
SDL_SetWindowGrab(gWindow, gConfigGeneral.trap_cursor ? SDL_TRUE : SDL_FALSE);
window_invalidate(w);
break;
case WIDX_TOOLBAR_SHOW_FINANCES: