summaryrefslogtreecommitdiffstats
path: root/sdl.c
diff options
context:
space:
mode:
authormalc2009-12-30 02:26:34 +0100
committermalc2009-12-30 02:26:34 +0100
commit3caf2562c21278aa9992bc7e6b5bbe98bc79f92e (patch)
tree16ee290d78e205ea181a39658e8a8f2ebdda1600 /sdl.c
parentAdd missing newline at the end of options list (diff)
downloadqemu-3caf2562c21278aa9992bc7e6b5bbe98bc79f92e.tar.gz
qemu-3caf2562c21278aa9992bc7e6b5bbe98bc79f92e.tar.xz
qemu-3caf2562c21278aa9992bc7e6b5bbe98bc79f92e.zip
sdl: print the reason why SDL thinks SDL_Init failed before exiting
Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'sdl.c')
-rw-r--r--sdl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sdl.c b/sdl.c
index 034440f721..33173105ac 100644
--- a/sdl.c
+++ b/sdl.c
@@ -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();