mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-10 20:01:25 +00:00
MOHAWK: RIVEN: Fix compilation without Riven
This commit is contained in:
parent
4b900cc432
commit
2f9c9a2c32
@ -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…
x
Reference in New Issue
Block a user