MOHAWK: RIVEN: Fix compilation without Riven
This commit is contained in:
parent
4b900cc432
commit
2f9c9a2c32
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue