[Scummvm-git-logs] scummvm master -> 704538a424d7e35e7e3a6e4485cc98fb29162403

sev- noreply at scummvm.org
Wed Jan 3 13:03:36 UTC 2024


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

Summary:
704538a424 DIRECTOR: Better resetting of font info in case of empty STXT resource


Commit: 704538a424d7e35e7e3a6e4485cc98fb29162403
    https://github.com/scummvm/scummvm/commit/704538a424d7e35e7e3a6e4485cc98fb29162403
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2024-01-03T14:02:30+01:00

Commit Message:
DIRECTOR: Better resetting of font info in case of empty STXT resource

Fixes hellcab all messages

Changed paths:
    engines/director/stxt.cpp


diff --git a/engines/director/stxt.cpp b/engines/director/stxt.cpp
index a8b366af620..ec01b3ef1d4 100644
--- a/engines/director/stxt.cpp
+++ b/engines/director/stxt.cpp
@@ -98,7 +98,9 @@ Stxt::Stxt(Cast *cast, Common::SeekableReadStreamEndian &textStream) : _cast(cas
 
 		// Reset formatting if the text is completely empty
 		if (totalFormatting == 1 && textPart.empty()) {
-			_style = FontStyle();
+			_style.fontId = 0;
+			_style.textSlant = 0;
+			_style.fontSize = 12;
 			debugC(4, kDebugText, "Stxt init: the font formatting was reset due to empty string");
 		}
 




More information about the Scummvm-git-logs mailing list