[Scummvm-git-logs] scummvm master -> 5c01a821b6187892811ef77feef7f1a09edc62d1

bluegr noreply at scummvm.org
Wed Apr 15 18:29:06 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:
5c01a821b6 STARK: Fix dialog aspect ratio


Commit: 5c01a821b6187892811ef77feef7f1a09edc62d1
    https://github.com/scummvm/scummvm/commit/5c01a821b6187892811ef77feef7f1a09edc62d1
Author: BLooperZ (blooperz at users.noreply.github.com)
Date: 2026-04-15T21:29:01+03:00

Commit Message:
STARK: Fix dialog aspect ratio

Changed paths:
    engines/stark/visual/text.cpp


diff --git a/engines/stark/visual/text.cpp b/engines/stark/visual/text.cpp
index 384940b1e23..239141d53ae 100644
--- a/engines/stark/visual/text.cpp
+++ b/engines/stark/visual/text.cpp
@@ -262,7 +262,9 @@ void VisualText::createBitmap() {
 
 	// Make sure lines have approximately consistent height regardless of the characters they use
 	scaledRect.bottom = MAX<int16>(scaledRect.bottom, scaledLineHeight * lines.size());
-	scaledRect.right = MAX<int16>(scaledRect.right, maxScaledLineWidth);
+
+	if (_align != Graphics::kTextAlignCenter)
+		scaledRect.right = MAX<int16>(scaledRect.right, maxScaledLineWidth);
 
 	if (!isBlank()) {
 		_originalRect.right = StarkGfx->scaleWidthCurrentToOriginal(scaledRect.right);




More information about the Scummvm-git-logs mailing list