From 6fca867ffe394ad3c9f3c4b440d64d8d5d74c181 Mon Sep 17 00:00:00 2001
From: Petar Popovic <[EMAIL REDACTED]>
Date: Wed, 11 Sep 2024 02:06:53 +0200
Subject: [PATCH] Fix testoffscreen.c: bool literal returned from 'main'
---
test/testoffscreen.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/testoffscreen.c b/test/testoffscreen.c
index 9943ace8ab920..d4b4b875a8f6d 100644
--- a/test/testoffscreen.c
+++ b/test/testoffscreen.c
@@ -113,7 +113,7 @@ int main(int argc, char *argv[])
if (!SDL_InitSubSystem(SDL_INIT_VIDEO)) {
SDL_Log("Couldn't initialize the offscreen video driver: %s\n",
SDL_GetError());
- return SDL_FALSE;
+ return 1;
}
/* If OPENGL fails to init it will fallback to using a framebuffer for rendering */
@@ -121,7 +121,7 @@ int main(int argc, char *argv[])
if (!window) {
SDL_Log("Couldn't create window: %s\n", SDL_GetError());
- return SDL_FALSE;
+ return 1;
}
renderer = SDL_CreateRenderer(window, NULL);
@@ -129,7 +129,7 @@ int main(int argc, char *argv[])
if (!renderer) {
SDL_Log("Couldn't create renderer: %s\n",
SDL_GetError());
- return SDL_FALSE;
+ return 1;
}
SDL_RenderClear(renderer);