Fix tabbign in and out of fullscreen (#514)

This commit is contained in:
Anders Jenbo 2025-07-04 04:48:09 +02:00 committed by GitHub
parent 4167c55c05
commit 92a96282b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -447,7 +447,7 @@ SDL_AppResult SDL_AppEvent(void* appstate, SDL_Event* event)
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));
}
else {