Do not crash if SDL_SetVideoMode() fails.

This commit is contained in:
Carl Eugen Hoyos 2011-06-16 23:21:19 +02:00
parent d5708923c2
commit d8ee777021

View File

@ -945,7 +945,7 @@ static int video_open(VideoState *is){
#endif
if (!screen) {
fprintf(stderr, "SDL: could not set video mode - exiting\n");
return -1;
do_exit();
}
if (!window_title)
window_title = input_filename;