Commit 3743ea1f authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

Hint why SDL_Init() may have failed.

parent fb464fca
......@@ -3027,6 +3027,7 @@ int main(int argc, char **argv)
#endif
if (SDL_Init (flags)) {
fprintf(stderr, "Could not initialize SDL - %s\n", SDL_GetError());
fprintf(stderr, "(Did you set the DISPLAY variable?)\n");
exit(1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment