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

bluegr noreply at scummvm.org
Tue Apr 21 08:34:56 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:
f74010d6c2 STARK: Fix dialog buttons width


Commit: f74010d6c2f1234b2dcf04cc6d233274af5fc97b
    https://github.com/scummvm/scummvm/commit/f74010d6c2f1234b2dcf04cc6d233274af5fc97b
Author: BLooperZ (blooperz at users.noreply.github.com)
Date: 2026-04-21T11:34:52+03:00

Commit Message:
STARK: Fix dialog buttons width

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


diff --git a/engines/stark/visual/text.cpp b/engines/stark/visual/text.cpp
index 239141d53ae..0b81d53e823 100644
--- a/engines/stark/visual/text.cpp
+++ b/engines/stark/visual/text.cpp
@@ -263,7 +263,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());
 
-	if (_align != Graphics::kTextAlignCenter)
+	Graphics::TextAlign align = Graphics::convertTextAlignH(_align, StarkSettings->getLanguage() == Common::HE_ISR);
+
+	if (align == Graphics::kTextAlignRight)
 		scaledRect.right = MAX<int16>(scaledRect.right, maxScaledLineWidth);
 
 	if (!isBlank()) {
@@ -285,8 +287,6 @@ void VisualText::createBitmap() {
 
 	surface.fillRect(Common::Rect(surface.w, surface.h), black);
 
-	Graphics::TextAlign align = Graphics::convertTextAlignH(_align, StarkSettings->getLanguage() == Common::HE_ISR);
-
 	// Render the lines to the surface
 	for (uint i = 0; i < lines.size(); i++) {
 		Common::U32String line = convertBiDiU32String(lines[i]).visual;




More information about the Scummvm-git-logs mailing list