diff options
Diffstat (limited to 'src/unittests/resources/sdlimagehelper.cc')
-rw-r--r-- | src/unittests/resources/sdlimagehelper.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/unittests/resources/sdlimagehelper.cc b/src/unittests/resources/sdlimagehelper.cc index 1208a5ef2..931acbb88 100644 --- a/src/unittests/resources/sdlimagehelper.cc +++ b/src/unittests/resources/sdlimagehelper.cc @@ -80,6 +80,13 @@ TEST_CASE("sdlimagehelper combineSurface", "") mainGraphics = new SDLGraphics; imageHelper = new SDLImageHelper; + + Dirs::initRootDir(); + Dirs::initHomeDir(); + + setBrandingDefaults(branding); + ConfigManager::initConfiguration(); + #ifdef USE_SDL2 SDLImageHelper::setRenderer(graphicsManager.createRenderer( graphicsManager.createWindow(640, 480, 0, @@ -91,12 +98,6 @@ TEST_CASE("sdlimagehelper combineSurface", "") userPalette = new UserPalette; - Dirs::initRootDir(); - Dirs::initHomeDir(); - - setBrandingDefaults(branding); - ConfigManager::initConfiguration(); - theme = new Theme; Theme::selectSkin(); |