We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 650da5b commit 399db6bCopy full SHA for 399db6b
src/platform/sdl/main.c
@@ -84,7 +84,7 @@ int main(int argc, char** argv) {
84
return 0;
85
}
86
87
- if (SDL_Init(SDL_INIT_VIDEO) < 0) {
+ if (!SDL_OK(SDL_Init(SDL_INIT_VIDEO))) {
88
printf("Could not initialize video: %s\n", SDL_GetError());
89
mArgumentsDeinit(&args);
90
return 1;
0 commit comments