commit | 3caf2562c21278aa9992bc7e6b5bbe98bc79f92e | [log] [tgz] |
---|---|---|
author | malc <av1474@comtv.ru> | Wed Dec 30 04:26:34 2009 +0300 |
committer | malc <av1474@comtv.ru> | Wed Dec 30 04:26:34 2009 +0300 |
tree | 16ee290d78e205ea181a39658e8a8f2ebdda1600 | |
parent | 19e65b47f60c68d7e8c96aa0a36223c5a0d3422b [diff] [blame] |
sdl: print the reason why SDL thinks SDL_Init failed before exiting Signed-off-by: malc <av1474@comtv.ru>
diff --git a/sdl.c b/sdl.c index 034440f..3317310 100644 --- a/sdl.c +++ b/sdl.c
@@ -849,7 +849,8 @@ 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();