mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
sdl: print the reason why SDL thinks SDL_Init failed before exiting
Signed-off-by: malc <av1474@comtv.ru>
This commit is contained in:
parent
19e65b47f6
commit
3caf2562c2
1 changed files with 2 additions and 1 deletions
3
sdl.c
3
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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue