summary refs log tree commit diff stats
path: root/ui/sdl2.c
diff options
context:
space:
mode:
authorNir Lichtman <nir@lichtman.org>2025-09-10 11:49:29 +0000
committerMarc-André Lureau <marcandre.lureau@redhat.com>2025-09-30 11:09:05 +0400
commit15421f71137b4a1b6bab8c12257b013dae1aebb8 (patch)
treec82459f5a73b0b29fc5257e303dfd583af141a78 /ui/sdl2.c
parent62fd247a24290dba2b2de4ee8575624a7993973c (diff)
downloadfocaccia-qemu-15421f71137b4a1b6bab8c12257b013dae1aebb8.tar.gz
focaccia-qemu-15421f71137b4a1b6bab8c12257b013dae1aebb8.zip
ui/sdl2: fix reset scaling binding to be consistent with gtk
Problem: Currently the reset scaling hotkey is inconsistent between SDL
and GTK graphics modes.

Solution: Fix SDL to use MOD+0 instead of MOD+u which is in line with
GTK and generally more consistent with other apps.

This is also related to my previously sent patch fixing the docs.

Suggested-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Nir Lichtman <nir@lichtman.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20250910114929.GA1783677@lichtman.org>
Diffstat (limited to 'ui/sdl2.c')
-rw-r--r--ui/sdl2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/sdl2.c b/ui/sdl2.c
index b00e421f7f..032dc14bc3 100644
--- a/ui/sdl2.c
+++ b/ui/sdl2.c
@@ -421,7 +421,7 @@ static void handle_keydown(SDL_Event *ev)
                 sdl_grab_end(scon);
             }
             break;
-        case SDL_SCANCODE_U:
+        case SDL_SCANCODE_0:
             sdl2_window_resize(scon);
             if (!scon->opengl) {
                 /* re-create scon->texture */