From d6431d4a3d996f9653d9dac4f58e1e4d6cc9c5dd Mon Sep 17 00:00:00 2001 From: Jacker Date: Sun, 12 Mar 2023 14:45:22 +0200 Subject: [PATCH] SDL2: added the missing patch --- patches/sdl-2.26.4.c89.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 patches/sdl-2.26.4.c89.patch diff --git a/patches/sdl-2.26.4.c89.patch b/patches/sdl-2.26.4.c89.patch new file mode 100644 index 00000000..b0fa909e --- /dev/null +++ b/patches/sdl-2.26.4.c89.patch @@ -0,0 +1,12 @@ +--- src/video/wayland/SDL_waylandevents.c 2023-03-12 11:34:57.705357013 +0000 ++++ src/video/wayland/SDL_waylandevents.c 2023-03-12 11:35:02.320769000 +0000 +@@ -1129,7 +1129,8 @@ + const SDL_Scancode scancode = Wayland_get_scancode_from_key(input, *key + 8); + + if (scancode != SDL_SCANCODE_UNKNOWN) { +- for (uint32_t i = 0; i < sizeof mod_scancodes / sizeof *mod_scancodes; ++i) { ++ uint32_t i; ++ for (i = 0; i < sizeof mod_scancodes / sizeof *mod_scancodes; ++i) { + if (mod_scancodes[i] == scancode) { + SDL_SendKeyboardKey(SDL_PRESSED, scancode); + break;