[Scummvm-git-logs] scummvm branch-3-0 -> 54c25ae90ae7b02d4aeaad810e0b377b74c634ef

dreammaster noreply at scummvm.org
Fri Dec 26 00:18:36 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:
54c25ae90a BAGEL: MINIGAMES: Fix crash for Archeroids win clue message


Commit: 54c25ae90ae7b02d4aeaad810e0b377b74c634ef
    https://github.com/scummvm/scummvm/commit/54c25ae90ae7b02d4aeaad810e0b377b74c634ef
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2025-12-26T11:18:29+11:00

Commit Message:
BAGEL: MINIGAMES: Fix crash for Archeroids win clue message

Changed paths:
    engines/bagel/mfc/gfx/text_render.cpp


diff --git a/engines/bagel/mfc/gfx/text_render.cpp b/engines/bagel/mfc/gfx/text_render.cpp
index ebee888f739..c1a7451c7ba 100644
--- a/engines/bagel/mfc/gfx/text_render.cpp
+++ b/engines/bagel/mfc/gfx/text_render.cpp
@@ -95,6 +95,9 @@ CSize TextRender::renderText(const Common::String &str,
 				lineRect.top);
 		}
 
+		lineRect.left = MAX<int16>(lineRect.left, 0);
+		lineRect.right = MIN<int16>(lineRect.right, dest->w);
+
 		// If the background is opaque, clear it
 		if (bkMode == OPAQUE)
 			dest->fillRect(lineRect, bkColor);




More information about the Scummvm-git-logs mailing list