diff options
| author | Andre Weissflog <floooh@gmail.com> | 2024-07-14 15:31:44 +0200 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2024-07-14 15:31:44 +0200 |
| commit | 2e3e188cf11f84d8cd825f3d7b71f36b79f7d6db (patch) | |
| tree | 8db6cbc093da557d33b905ff297d4470118ef733 /sokol_app.h | |
| parent | 1c47b853e567e23a31533dea523057cc07c98c71 (diff) | |
sokol_app.h x11: fix gcc warnings
Diffstat (limited to 'sokol_app.h')
| -rw-r--r-- | sokol_app.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sokol_app.h b/sokol_app.h index ce1cfdf0..ec767f05 100644 --- a/sokol_app.h +++ b/sokol_app.h @@ -2767,7 +2767,7 @@ typedef struct { // XLib manual says keycodes are in the range [8, 255] inclusive. // https://tronche.com/gui/x/xlib/input/keyboard-encoding.html bool key_repeat[_SAPP_X11_MAX_X11_KEYCODES]; - int16_t keycodes[_SAPP_X11_MAX_X11_KEYCODES]; + sapp_keycode keycodes[_SAPP_X11_MAX_X11_KEYCODES]; } _sapp_x11_t; #if defined(_SAPP_GLX) @@ -9825,7 +9825,7 @@ _SOKOL_PRIVATE void _sapp_x11_init_keytables(void) { const int scancode_min = desc->min_key_code; const int scancode_max = desc->max_key_code; - const struct { int key; char* name; } keymap[] = { + const struct { sapp_keycode key; const char* name; } keymap[] = { { SAPP_KEYCODE_GRAVE_ACCENT, "TLDE" }, { SAPP_KEYCODE_1, "AE01" }, { SAPP_KEYCODE_2, "AE02" }, |