[Scummvm-git-logs] scummvm master -> a57bc1b956f33fc3265958cc6d703425eee70589

neuromancer noreply at scummvm.org
Fri Aug 15 20:44:45 UTC 2025


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:
a57bc1b956 PRIVATE: adjusted subtitle position


Commit: a57bc1b956f33fc3265958cc6d703425eee70589
    https://github.com/scummvm/scummvm/commit/a57bc1b956f33fc3265958cc6d703425eee70589
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2025-08-15T22:47:57+02:00

Commit Message:
PRIVATE: adjusted subtitle position

Changed paths:
    engines/private/private.cpp


diff --git a/engines/private/private.cpp b/engines/private/private.cpp
index 0868b859ed6..425e1e45aff 100644
--- a/engines/private/private.cpp
+++ b/engines/private/private.cpp
@@ -1501,8 +1501,14 @@ void PrivateEngine::loadSubtitles(const Common::Path &path) {
 		g_system->showOverlay(false);
 		int16 h = g_system->getOverlayHeight();
 
-		_subtitles->setBBox(Common::Rect(20, h - 120, g_system->getOverlayWidth() - 20, h - 20));
-		_subtitles->setColor(0xff, 0xff, 0xff);
+		// If we are in the main menu, we need to adjust the position of the subtitles
+		if (_currentSetting == getMainDesktopSetting()) {
+			_subtitles->setBBox(Common::Rect(20, h - 100, g_system->getOverlayWidth() - 20, h - 20));
+		} else {
+			_subtitles->setBBox(Common::Rect(20, h - 160, g_system->getOverlayWidth() - 20, h - 20));
+		}
+
+		_subtitles->setColor(0xff, 0xff, 0x80);
 		_subtitles->setFont("LiberationSans-Regular.ttf", 50);
 
 	} else {




More information about the Scummvm-git-logs mailing list