From 8a6841c8c3362f76830d2cba4431e1c7caf7cf54 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 27 Aug 2024 10:42:49 -0700
Subject: [PATCH] Updated for SDL3 change to use SDL_bool instead of int return
code
---
examples/showfont.c | 2 +-
examples/testapp.c | 2 +-
external/SDL | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/examples/showfont.c b/examples/showfont.c
index f23372fd..4665298e 100644
--- a/examples/showfont.c
+++ b/examples/showfont.c
@@ -243,7 +243,7 @@ int main(int argc, char *argv[])
}
/* Create a window */
- if (SDL_CreateWindowAndRenderer("showfont demo", WIDTH, HEIGHT, 0, &window, &renderer) < 0) {
+ if (!SDL_CreateWindowAndRenderer("showfont demo", WIDTH, HEIGHT, 0, &window, &renderer)) {
SDL_Log("SDL_CreateWindowAndRenderer() failed: %s\n", SDL_GetError());
cleanup(2);
}
diff --git a/examples/testapp.c b/examples/testapp.c
index 7a5a9570..339df150 100644
--- a/examples/testapp.c
+++ b/examples/testapp.c
@@ -631,7 +631,7 @@ int main(void)
T_min = SDL_min(T_min, T2 - T1); \
- if (SDL_Init(SDL_INIT_VIDEO) < 0) {
+ if (!SDL_Init(SDL_INIT_VIDEO)) {
quit("SDL init failed");
}
diff --git a/external/SDL b/external/SDL
index 761e86e2..85bbc602 160000
--- a/external/SDL
+++ b/external/SDL
@@ -1 +1 @@
-Subproject commit 761e86e25e0dcfbdffa19e46be4991d78287a062
+Subproject commit 85bbc6028ad36e2c1daa8fac60ae07562077b17e