MOHAWK: RIVEN: Fix compilation without Riven

This commit is contained in:
Bastien Bouclet 2018-06-18 21:45:21 +02:00
parent 4b900cc432
commit 2f9c9a2c32

View File

@ -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);