summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/browserbox_unittest.cc3
-rw-r--r--src/gui/windowmanager_unittest.cc3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/widgets/browserbox_unittest.cc b/src/gui/widgets/browserbox_unittest.cc
index 1bae1f294..9aadeac09 100644
--- a/src/gui/widgets/browserbox_unittest.cc
+++ b/src/gui/widgets/browserbox_unittest.cc
@@ -21,6 +21,8 @@
#include "catch.hpp"
#include "client.h"
+#include "being/actorsprite.h"
+
#include "gui/fonts/font.h"
#include "gui/widgets/browserbox.h"
@@ -41,6 +43,7 @@ TEST_CASE("BrowserBox tests", "browserbox")
logger = new Logger();
imageHelper = new SDLImageHelper();
theme = new Theme;
+ ActorSprite::load();
Widget::setGlobalFont(new Font("/usr/share/fonts/truetype/"
"ttf-dejavu/DejaVuSans-Oblique.ttf", 18));
BrowserBox *const box = new BrowserBox(nullptr,
diff --git a/src/gui/windowmanager_unittest.cc b/src/gui/windowmanager_unittest.cc
index f6de6f517..ffaa00d67 100644
--- a/src/gui/windowmanager_unittest.cc
+++ b/src/gui/windowmanager_unittest.cc
@@ -23,6 +23,8 @@
#include "graphicsmanager.h"
#include "settings.h"
+#include "being/actorsprite.h"
+
#include "gui/gui.h"
#include "gui/userpalette.h"
@@ -75,6 +77,7 @@ TEST_CASE("Windows tests", "windowmanager")
imageHelper = new SDLImageHelper;
userPalette = new UserPalette;
theme = new Theme;
+ ActorSprite::load();
gui = new Gui();
gui->postInit(mainGraphics);