Commit 3caf2562 authored by malc's avatar malc
Browse files

sdl: print the reason why SDL thinks SDL_Init failed before exiting



Signed-off-by: default avatarmalc <av1474@comtv.ru>
parent 19e65b47
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -849,7 +849,8 @@ void sdl_display_init(DisplayState *ds, int full_screen, int no_frame)

    flags = SDL_INIT_VIDEO | SDL_INIT_NOPARACHUTE;
    if (SDL_Init (flags)) {
        fprintf(stderr, "Could not initialize SDL - exiting\n");
        fprintf(stderr, "Could not initialize SDL(%s) - exiting\n",
                SDL_GetError());
        exit(1);
    }
    vi = SDL_GetVideoInfo();