summaryrefslogtreecommitdiff
path: root/src/unittests/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-18 05:52:59 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-18 05:52:59 +0300
commit0034c2c7ee0a644aac9d43e2d37661dc89e96003 (patch)
tree2a003123a2ac7f67b196dec550ee10d55a52a6a5 /src/unittests/gui
parentec6c80d170c4a30e76abc22c889aa8cf27fb45a4 (diff)
downloadmanaverse-0034c2c7ee0a644aac9d43e2d37661dc89e96003.tar.gz
manaverse-0034c2c7ee0a644aac9d43e2d37661dc89e96003.tar.bz2
manaverse-0034c2c7ee0a644aac9d43e2d37661dc89e96003.tar.xz
manaverse-0034c2c7ee0a644aac9d43e2d37661dc89e96003.zip
Fix unit tests compilation.
Diffstat (limited to 'src/unittests/gui')
-rw-r--r--src/unittests/gui/widgets/browserbox.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/unittests/gui/widgets/browserbox.cc b/src/unittests/gui/widgets/browserbox.cc
index a6ad9773d..46a5f3b23 100644
--- a/src/unittests/gui/widgets/browserbox.cc
+++ b/src/unittests/gui/widgets/browserbox.cc
@@ -79,8 +79,10 @@ TEST_CASE("BrowserBox tests", "browserbox")
gui = new Gui();
gui->postInit(mainGraphics);
- Widget::setGlobalFont(new Font("/usr/share/fonts/truetype/"
- "ttf-dejavu/DejaVuSans-Oblique.ttf", 18));
+ Widget::setGlobalFont(new Font(
+ "/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Oblique.ttf",
+ 18,
+ TTF_STYLE_NORMAL));
BrowserBox *const box = new BrowserBox(nullptr,
Opaque_true,
"");