Skip to content

Commit 399db6b

Browse files
committed
SDL: Fix mgba-sdl init
1 parent 650da5b commit 399db6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platform/sdl/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ int main(int argc, char** argv) {
8484
return 0;
8585
}
8686

87-
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
87+
if (!SDL_OK(SDL_Init(SDL_INIT_VIDEO))) {
8888
printf("Could not initialize video: %s\n", SDL_GetError());
8989
mArgumentsDeinit(&args);
9090
return 1;

0 commit comments

Comments
 (0)