Fixed #79 (starting with no GUI should still initialize the Surface!)
This commit is contained in:
parent
243f563271
commit
70aafdb1f3
1 changed files with 3 additions and 1 deletions
|
@ -255,7 +255,9 @@ static void graphics_subinit()
|
||||||
{
|
{
|
||||||
if (screen == nullptr)
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue