- Defer SDL subsystem initialization since it seems to cause conflicts with GUI toolkits on some systems.

This commit is contained in:
Braden Obrzut 2015-02-02 19:36:08 -05:00
commit 8e1b1aa201
4 changed files with 23 additions and 6 deletions

View file

@ -265,14 +265,13 @@ int main (int argc, char **argv)
setlocale (LC_ALL, "C");
if (SDL_Init (SDL_INIT_VIDEO|SDL_INIT_TIMER|SDL_INIT_NOPARACHUTE|SDL_INIT_JOYSTICK) == -1)
if (SDL_Init (0) < 0)
{
fprintf (stderr, "Could not initialize SDL:\n%s\n", SDL_GetError());
return -1;
}
atterm (SDL_Quit);
printf("Using video driver %s\n", SDL_GetCurrentVideoDriver());
printf("\n");
try