Skip to content

Commit 0f262a1

Browse files
R1dOSupSuper
authored andcommitted
Try harder to honor user preference on "mouse capture".
When using `SDLcompat-1.2.68` this preference was lost (if set to false) after switching from fullscreen to a "windowed" mode. The mentioned SDLcompat version internally sets `SDL_WM_GrabInput` to TRUE if `SDL_FULLSCREEN` is in effect and does not allow this to change.
1 parent bcf5ea9 commit 0f262a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Menu/OptionsBaseState.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ void OptionsBaseState::btnOkClick(Action *)
203203
Options::mapResources();
204204
}
205205
_game->loadLanguages();
206-
SDL_WM_GrabInput(Options::captureMouse);
207206
_game->getScreen()->resetDisplay();
207+
SDL_WM_GrabInput(Options::captureMouse);
208208
_game->setVolume(Options::soundVolume, Options::musicVolume, Options::uiVolume);
209209
if (Options::reload && _origin == OPT_MENU)
210210
{

0 commit comments

Comments
 (0)