SDL: testsprite: changed return type of LoadSprite() to bool

From cc3b5766fa14bbc182e0f5fe21c0f1454b66a731 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 14 Nov 2025 07:59:34 -0800
Subject: [PATCH] testsprite: changed return type of LoadSprite() to bool

---
 test/testsprite.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/test/testsprite.c b/test/testsprite.c
index cd85299e7fe61..36f0d0f12ac4f 100644
--- a/test/testsprite.c
+++ b/test/testsprite.c
@@ -51,7 +51,7 @@ void SDL_AppQuit(void *appstate, SDL_AppResult result)
     SDLTest_CommonQuit(state);
 }
 
-static int LoadSprite(const char *file)
+static bool LoadSprite(const char *file)
 {
     int i;
 
@@ -66,17 +66,17 @@ static int LoadSprite(const char *file)
             sprite_h = (float)sprites[i]->h;
         }
         if (!sprites[i]) {
-            return -1;
+            return false;
         }
         if (!SDL_SetTextureBlendMode(sprites[i], blendMode)) {
             SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't set blend mode: %s", SDL_GetError());
             SDL_DestroyTexture(sprites[i]);
-            return -1;
+            return false;
         }
     }
 
     /* We're ready to roll. :) */
-    return 0;
+    return true;
 }
 
 static void MoveSprites(SDL_Renderer *renderer, SDL_Texture *sprite)
@@ -516,7 +516,7 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[])
         SDL_SetRenderDrawColor(renderer, 0xA0, 0xA0, 0xA0, 0xFF);
         SDL_RenderClear(renderer);
     }
-    if (LoadSprite(icon) < 0) {
+    if (!LoadSprite(icon)) {
         return SDL_APP_FAILURE;
     }