[Scummvm-git-logs] scummvm master -> 7e5d0694648ed18ee2dd42ac3c85b5bac69caab4

aquadran noreply at scummvm.org
Mon Aug 3 10:34:20 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:
7e5d069464 WINTERMUTE: Restore W/A for one line wrap text


Commit: 7e5d0694648ed18ee2dd42ac3c85b5bac69caab4
    https://github.com/scummvm/scummvm/commit/7e5d0694648ed18ee2dd42ac3c85b5bac69caab4
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2026-08-03T12:34:05+02:00

Commit Message:
WINTERMUTE: Restore W/A for one line wrap text

Changed paths:
    engines/wintermute/base/font/base_font_truetype.cpp


diff --git a/engines/wintermute/base/font/base_font_truetype.cpp b/engines/wintermute/base/font/base_font_truetype.cpp
index 76207203b11..2d342acc141 100644
--- a/engines/wintermute/base/font/base_font_truetype.cpp
+++ b/engines/wintermute/base/font/base_font_truetype.cpp
@@ -791,7 +791,9 @@ int32 BaseFontTT::wrapText(const WideString &text, int32 maxWidth, int32 maxHeig
 			 * i.e. do not add it to the text line list, return immediately
 			 */
 			if (maxHeight >= 0 && ((int32)lines.size() + 1) * getLineHeight() > maxHeight) {
-				break;
+				// W/A,FIXME: font height can be bigger, do not exit if one line
+				if (lines.size() != 0)
+					break;
 			}
 
 			WideString line = text.substr(lineStartIndex, breakPoint - lineStartIndex);




More information about the Scummvm-git-logs mailing list