mirror of
https://github.com/etlegacy/etlegacy-libs.git
synced 2025-02-23 03:40:56 +00:00
SDL2: added the missing patch
This commit is contained in:
parent
7730fd9c9d
commit
d6431d4a3d
1 changed files with 12 additions and 0 deletions
12
patches/sdl-2.26.4.c89.patch
Normal file
12
patches/sdl-2.26.4.c89.patch
Normal file
|
@ -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;
|
Loading…
Reference in a new issue