From 768a75b712ba7ab3bb832dacdccd111964a0d251 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 2 Nov 2019 17:26:40 +0100 Subject: [PATCH] - fixed video startup. Make sure that SDL is initialized as the first thing and that the validmodecnt variable does not get cleared --- source/build/src/engine.cpp | 7 ------- source/build/src/sdlayer.cpp | 1 + 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/source/build/src/engine.cpp b/source/build/src/engine.cpp index 088e9c390..cc95040c5 100644 --- a/source/build/src/engine.cpp +++ b/source/build/src/engine.cpp @@ -8100,7 +8100,6 @@ int32_t enginePreInit(void) { baselayer_init(); initdivtables(); - if (initsystem()) Bexit(9); #if !defined DEBUG_MAIN_ARRAYS sector = sector_s; @@ -8114,12 +8113,6 @@ int32_t enginePreInit(void) spritesmooth = spritesmooth_s; #endif -#if !defined ENGINE_USING_A_C - mmxoverlay(); -#endif - - validmodecnt = 0; - videoGetModes(); initcrc32table(); diff --git a/source/build/src/sdlayer.cpp b/source/build/src/sdlayer.cpp index f805b498e..312dad131 100644 --- a/source/build/src/sdlayer.cpp +++ b/source/build/src/sdlayer.cpp @@ -449,6 +449,7 @@ int main(int argc, char *argv[]) gtkbuild_init(&argc, &argv); #endif + if (initsystem()) Bexit(9); try {