From 60013b1f94676e38d15c57de3e5cd36483c78187 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 22 Jun 2024 06:27:27 -0700 Subject: [PATCH] Updated to the latest version of SDL --- examples/showanim.c | 2 +- examples/showimage.c | 2 +- external/SDL | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/showanim.c b/examples/showanim.c index bf9ca842..7aae2252 100644 --- a/examples/showanim.c +++ b/examples/showanim.c @@ -128,7 +128,7 @@ int main(int argc, char *argv[]) while ( SDL_PollEvent(&event) ) { switch (event.type) { case SDL_EVENT_KEY_UP: - switch (event.key.keysym.sym) { + switch (event.key.key) { case SDLK_LEFT: if ( i > 1 ) { i -= 2; diff --git a/examples/showimage.c b/examples/showimage.c index fcabca9c..86543035 100644 --- a/examples/showimage.c +++ b/examples/showimage.c @@ -204,7 +204,7 @@ int main(int argc, char *argv[]) while ( SDL_PollEvent(&event) ) { switch (event.type) { case SDL_EVENT_KEY_UP: - switch (event.key.keysym.sym) { + switch (event.key.key) { case SDLK_LEFT: if ( i > 1 ) { i -= 2; diff --git a/external/SDL b/external/SDL index ea8df465..99d28ca4 160000 --- a/external/SDL +++ b/external/SDL @@ -1 +1 @@ -Subproject commit ea8df4657535812c9f7ebdfd066d26ac118718e9 +Subproject commit 99d28ca485f76a5ad60a1f3497e1b6cf14932f59