From 2b69c3665159cc69911cf6ae916de5504ef3629d Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 27 Aug 2024 12:22:10 -0700
Subject: [PATCH] Updated for SDL3 change to use SDL_bool instead of int return
code
---
cmake/test/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmake/test/main.c b/cmake/test/main.c
index 2f1ce62b..8eb21937 100644
--- a/cmake/test/main.c
+++ b/cmake/test/main.c
@@ -20,7 +20,7 @@
int main(int argc, char *argv[])
{
- if (SDL_Init(0) < 0) {
+ if (!SDL_Init(0)) {
SDL_Log("SDL_Init(0) failed: %s\n", SDL_GetError());
return 1;
}