From 70aafdb1f3f8ce92664272c49a8528d5ab79f033 Mon Sep 17 00:00:00 2001 From: Dimitris Panokostas Date: Mon, 10 Apr 2017 16:30:03 +0200 Subject: [PATCH] Fixed #79 (starting with no GUI should still initialize the Surface!) --- src/osdep/amiberry_gfx.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/osdep/amiberry_gfx.cpp b/src/osdep/amiberry_gfx.cpp index 31ed16fd..7566c1c0 100644 --- a/src/osdep/amiberry_gfx.cpp +++ b/src/osdep/amiberry_gfx.cpp @@ -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 {