From 2f9c9a2c324b27e21f4bb249cc1a89c46f1e353c Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Mon, 18 Jun 2018 21:45:21 +0200 Subject: MOHAWK: RIVEN: Fix compilation without Riven --- engines/mohawk/riven_stacks/aspit.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3