aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Bouclet2018-06-18 21:45:21 +0200
committerBastien Bouclet2018-06-29 13:31:54 +0200
commit2f9c9a2c324b27e21f4bb249cc1a89c46f1e353c (patch)
tree9ca7a882433f45f3ebcb0851e0cf8b8603a13220
parent4b900cc432cf1640d65a6f3b588d9582140ae824 (diff)
downloadscummvm-rg350-2f9c9a2c324b27e21f4bb249cc1a89c46f1e353c.tar.gz
scummvm-rg350-2f9c9a2c324b27e21f4bb249cc1a89c46f1e353c.tar.bz2
scummvm-rg350-2f9c9a2c324b27e21f4bb249cc1a89c46f1e353c.zip
MOHAWK: RIVEN: Fix compilation without Riven
-rw-r--r--engines/mohawk/riven_stacks/aspit.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/mohawk/riven_stacks/aspit.cpp b/engines/mohawk/riven_stacks/aspit.cpp
index ae346cdfea..9c8ffc2ddd 100644
--- a/engines/mohawk/riven_stacks/aspit.cpp
+++ b/engines/mohawk/riven_stacks/aspit.cpp
@@ -92,12 +92,14 @@ void ASpit::xastartupbtnhide(const ArgumentArray &args) {
Common::File file;
const char *fontname = "FreeSans.ttf";
- int fontHeight = 11;
const Graphics::Font *font = nullptr;
+#if defined(USE_FREETYPE2)
+ int fontHeight = 11;
if (file.open(fontname)) {
font = Graphics::loadTTFFont(file, fontHeight);
}
+#endif
if (!font) {
warning("Cannot load font %s directly", fontname);