From 7952e78994f8a58cd3da17cad6175481f359d28a Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 27 Aug 2024 10:37:48 -0700
Subject: [PATCH] Updated for SDL3 change to use SDL_bool instead of int return
code
---
examples/showanim.c | 4 ++--
examples/showimage.c | 2 +-
external/SDL | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/examples/showanim.c b/examples/showanim.c
index 02cec1de..153fc328 100644
--- a/examples/showanim.c
+++ b/examples/showanim.c
@@ -78,12 +78,12 @@ int main(int argc, char *argv[])
}
}
- if (SDL_Init(SDL_INIT_VIDEO) == -1) {
+ if (!SDL_Init(SDL_INIT_VIDEO)) {
SDL_Log("SDL_Init(SDL_INIT_VIDEO) failed: %s\n", SDL_GetError());
return(2);
}
- if (SDL_CreateWindowAndRenderer("animation demo", 0, 0, flags, &window, &renderer) < 0) {
+ if (!SDL_CreateWindowAndRenderer("animation demo", 0, 0, flags, &window, &renderer)) {
SDL_Log("SDL_CreateWindowAndRenderer() failed: %s\n", SDL_GetError());
return(2);
}
diff --git a/examples/showimage.c b/examples/showimage.c
index 1557a28e..ccc114f4 100644
--- a/examples/showimage.c
+++ b/examples/showimage.c
@@ -82,7 +82,7 @@ int main(int argc, char *argv[])
}
}
- if (SDL_Init(SDL_INIT_VIDEO) == -1) {
+ if (!SDL_Init(SDL_INIT_VIDEO)) {
SDL_Log("SDL_Init(SDL_INIT_VIDEO) failed: %s\n", SDL_GetError());
result = 2;
goto done;
diff --git a/external/SDL b/external/SDL
index efdcfef4..85bbc602 160000
--- a/external/SDL
+++ b/external/SDL
@@ -1 +1 @@
-Subproject commit efdcfef4b94c41229b92633e184b17b7f3c4d01c
+Subproject commit 85bbc6028ad36e2c1daa8fac60ae07562077b17e