mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 04:28:37 +00:00
ULTIMA: Allow engine to build without freetype
Disables TTF support in U8, but otherwise works fine.
This commit is contained in:
parent
5d8f1896fb
commit
883e60abc2
@ -1,3 +1,3 @@
|
||||
# This file is included from the main "configure" script
|
||||
# add_engine [name] [desc] [build-by-default] [subengines] [base games] [deps]
|
||||
add_engine ultima "Ultima" yes "" "" "highres 16bit freetype2 lua"
|
||||
add_engine ultima "Ultima" yes "" "" "highres 16bit lua"
|
||||
|
@ -109,6 +109,7 @@ Graphics::Font *FontManager::getTTF_Font(const Std::string &filename, int points
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
#ifdef USE_FREETYPE2
|
||||
// open font using ScummVM TTF API
|
||||
// Note: The RWops and ReadStream will be deleted by the TTF_Font
|
||||
Graphics::Font *font = Graphics::loadTTFFont(*fontids, pointsize);
|
||||
@ -125,6 +126,9 @@ Graphics::Font *FontManager::getTTF_Font(const Std::string &filename, int points
|
||||
#endif
|
||||
|
||||
return font;
|
||||
#else // !USE_FREETYPE2
|
||||
return nullptr;
|
||||
#endif
|
||||
}
|
||||
|
||||
void FontManager::setOverride(unsigned int fontnum, Font *newFont) {
|
||||
|
Loading…
Reference in New Issue
Block a user