Commit d8ee7770 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

Do not crash if SDL_SetVideoMode() fails.

parent d5708923
...@@ -945,7 +945,7 @@ static int video_open(VideoState *is){ ...@@ -945,7 +945,7 @@ static int video_open(VideoState *is){
#endif #endif
if (!screen) { if (!screen) {
fprintf(stderr, "SDL: could not set video mode - exiting\n"); fprintf(stderr, "SDL: could not set video mode - exiting\n");
return -1; do_exit();
} }
if (!window_title) if (!window_title)
window_title = input_filename; window_title = input_filename;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment