[Scummvm-git-logs] scummvm master -> 990797000ad11c7afe578278a9565a1aedd83c61
dreammaster
dreammaster at scummvm.org
Sun Feb 7 16:11:20 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
990797000a AGS: Wrap loadTTFFont call in ifdef USE_FREETYPE2
Commit: 990797000ad11c7afe578278a9565a1aedd83c61
https://github.com/scummvm/scummvm/commit/990797000ad11c7afe578278a9565a1aedd83c61
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2021-02-07T08:08:34-08:00
Commit Message:
AGS: Wrap loadTTFFont call in ifdef USE_FREETYPE2
Changed paths:
engines/ags/lib/alfont/alfont.cpp
diff --git a/engines/ags/lib/alfont/alfont.cpp b/engines/ags/lib/alfont/alfont.cpp
index e538baf601..c657bdaf40 100644
--- a/engines/ags/lib/alfont/alfont.cpp
+++ b/engines/ags/lib/alfont/alfont.cpp
@@ -27,6 +27,7 @@
namespace AGS3 {
Graphics::Font *ALFONT_FONT::getFont() {
+#ifdef USE_FREETYPE2
if (!_fonts.contains(_size)) {
// Instantiate the raw TTF data into a font of the given size
_fonts[_size] = Graphics::loadTTFFont(_ttfData, _size);
@@ -34,6 +35,9 @@ Graphics::Font *ALFONT_FONT::getFont() {
}
return _fonts[_size];
+#else
+ error("Game needs FreeType library, which was not included in this build");
+#endif
}
/*------------------------------------------------------------------*/
More information about the Scummvm-git-logs
mailing list