[Scummvm-git-logs] scummvm master -> 32211933eb497c91c0d1e41f3dde3da57d1ce74b

mikrosk noreply at scummvm.org
Tue Aug 25 00:17:48 UTC 2026


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
32211933eb SKY: Fix build when FT2 is not available


Commit: 32211933eb497c91c0d1e41f3dde3da57d1ce74b
    https://github.com/scummvm/scummvm/commit/32211933eb497c91c0d1e41f3dde3da57d1ce74b
Author: Miro Kropacek (miro.kropacek at gmail.com)
Date: 2026-08-25T10:17:13+10:00

Commit Message:
SKY: Fix build when FT2 is not available

Changed paths:
    engines/sky/control.cpp


diff --git a/engines/sky/control.cpp b/engines/sky/control.cpp
index 487b4f36b14..50113a519dc 100644
--- a/engines/sky/control.cpp
+++ b/engines/sky/control.cpp
@@ -1149,7 +1149,16 @@ void Control::initHelpPanel() {
 
 	int destX = (GAME_SCREEN_WIDTH - newW) / 2;
 	int destY = (FULL_SCREEN_HEIGHT - newH) / 2;
-	Graphics::Font *font = Graphics::loadTTFFontFromArchive("NotoSans-Regular.ttf", 12);
+	Graphics::Font *font = nullptr;
+#ifdef USE_FREETYPE2
+	font = Graphics::loadTTFFontFromArchive("NotoSans-Regular.ttf", 12);
+#endif
+	if (!font) {
+		warning("Cannot load font, hints disabled");
+		scaled->free();
+		delete scaled;
+		return;
+	}
 	Common::Array<Hint> hints = buildHints();
 	Common::Array<Common::Rect> hintRects;
 	TappableAnswer currentTappable;




More information about the Scummvm-git-logs mailing list