[Scummvm-git-logs] scummvm master -> 388977a450a7ffefd9a5821aa540213bd0ca4cef
dreammaster
noreply at scummvm.org
Fri Dec 26 00:18:13 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:
388977a450 BAGEL: MINIGAMES: Fix crash for Archeroids win clue message
Commit: 388977a450a7ffefd9a5821aa540213bd0ca4cef
https://github.com/scummvm/scummvm/commit/388977a450a7ffefd9a5821aa540213bd0ca4cef
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2025-12-26T11:18:06+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