mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-20 22:21:15 +00:00
Fix tabbign in and out of fullscreen (#514)
This commit is contained in:
parent
4167c55c05
commit
92a96282b3
@ -447,7 +447,7 @@ SDL_AppResult SDL_AppEvent(void* appstate, SDL_Event* event)
|
|||||||
|
|
||||||
SDL_Keycode keyCode = event->key.key;
|
SDL_Keycode keyCode = event->key.key;
|
||||||
|
|
||||||
if (event->key.mod == SDL_KMOD_LALT && keyCode == SDLK_RETURN) {
|
if ((event->key.mod & SDL_KMOD_LALT) && keyCode == SDLK_RETURN) {
|
||||||
SDL_SetWindowFullscreen(window, !(SDL_GetWindowFlags(window) & SDL_WINDOW_FULLSCREEN));
|
SDL_SetWindowFullscreen(window, !(SDL_GetWindowFlags(window) & SDL_WINDOW_FULLSCREEN));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user