Skip to content

Commit

Permalink
Updated for SDL3 change to use SDL_bool instead of int return code
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 27, 2024
1 parent 3401b15 commit 8a6841c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/showfont.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion examples/testapp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down
2 changes: 1 addition & 1 deletion external/SDL
Submodule SDL updated 1168 files

0 comments on commit 8a6841c

Please sign in to comment.