diff options
Diffstat (limited to 'src/unittests/resources/map/maplayer/drawspeciallayer2.cc')
-rw-r--r-- | src/unittests/resources/map/maplayer/drawspeciallayer2.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/unittests/resources/map/maplayer/drawspeciallayer2.cc b/src/unittests/resources/map/maplayer/drawspeciallayer2.cc index 8aa0ccf8b..e4e414a0d 100644 --- a/src/unittests/resources/map/maplayer/drawspeciallayer2.cc +++ b/src/unittests/resources/map/maplayer/drawspeciallayer2.cc @@ -51,6 +51,13 @@ TEST_CASE("MapLayer drawSpecialLayer (tempLayer)", "") VirtFs::mountDirSilent("../data", Append_false); imageHelper = new SDLImageHelper; + + Dirs::initRootDir(); + Dirs::initHomeDir(); + + setBrandingDefaults(branding); + ConfigManager::initConfiguration(); + #ifdef USE_SDL2 SDLImageHelper::setRenderer(graphicsManager.createRenderer( graphicsManager.createWindow(640, 480, 0, @@ -60,12 +67,6 @@ TEST_CASE("MapLayer drawSpecialLayer (tempLayer)", "") graphicsManager.createWindow(640, 480, 0, SDL_ANYFORMAT | SDL_SWSURFACE); #endif // USE_SDL2 - Dirs::initRootDir(); - Dirs::initHomeDir(); - - setBrandingDefaults(branding); - ConfigManager::initConfiguration(); - Map *map = nullptr; MapLayer *layer = nullptr; SpecialLayer *specialLayer = nullptr; |