提交 3caf2562 编写于 作者: M malc

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

Signed-off-by: Nmalc <av1474@comtv.ru>
上级 19e65b47
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册