From c512d403a1689d331866a0d8137513f8beacb3ca Mon Sep 17 00:00:00 2001 From: Isaac0-dev <62234577+Isaac0-dev@users.noreply.github.com> Date: Wed, 8 May 2024 09:52:33 +1000 Subject: [PATCH] allow right alt in fullscreen combo (#29) --- src/pc/gfx/gfx_sdl2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pc/gfx/gfx_sdl2.c b/src/pc/gfx/gfx_sdl2.c index 547308be..10a96d37 100644 --- a/src/pc/gfx/gfx_sdl2.c +++ b/src/pc/gfx/gfx_sdl2.c @@ -170,7 +170,7 @@ static void gfx_sdl_get_dimensions(uint32_t *width, uint32_t *height) { static void gfx_sdl_onkeydown(int scancode) { const Uint8 *state = SDL_GetKeyboardState(NULL); - if (state[SDL_SCANCODE_LALT] && state[SDL_SCANCODE_RETURN]) { + if ((state[SDL_SCANCODE_LALT] || state[SDL_SCANCODE_RALT]) && state[SDL_SCANCODE_RETURN]) { configWindow.fullscreen = !configWindow.fullscreen; configWindow.settings_changed = true; return;