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 7952e78 commit 2b69c36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/test/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2b69c36

Please sign in to comment.