aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mohawk')
-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);