Fixed #79 (starting with no GUI should still initialize the Surface!)

This commit is contained in:
Dimitris Panokostas 2017-04-10 16:30:03 +02:00
parent 243f563271
commit 70aafdb1f3

View file

@ -255,7 +255,9 @@ static void graphics_subinit()
{
if (screen == nullptr)
{
fprintf(stderr, "Unable to set video mode: %s\n", SDL_GetError());
open_screen(&currprefs);
if (screen == nullptr)
fprintf(stderr, "Unable to set video mode: %s\n", SDL_GetError());
}
else
{