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 1541acc commit bcd5770
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 @@ -4,7 +4,7 @@

int main(int argc, char *argv[])
{
if (SDL_Init(0) < 0) {
if (!SDL_Init(0)) {
SDL_Log("SDL_Init: could not initialize SDL: %s\n", SDL_GetError());
return 1;
}
Expand Down

0 comments on commit bcd5770

Please sign in to comment.