[Scummvm-git-logs] scummvm master -> 6c246cae82114fab9c148a0784ac9e5d78d87d4a

eriktorbjorn noreply at scummvm.org
Fri Jul 11 05:00:49 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:
6c246cae82 GRAPHICS: MACGUI: Keep menu delimiters from bleeding into the menu frame


Commit: 6c246cae82114fab9c148a0784ac9e5d78d87d4a
    https://github.com/scummvm/scummvm/commit/6c246cae82114fab9c148a0784ac9e5d78d87d4a
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2025-07-11T07:00:37+02:00

Commit Message:
GRAPHICS: MACGUI: Keep menu delimiters from bleeding into the menu frame

I have tested this in SCUMM Mac games, both on both menus where the
rightmost delimiter pixel is black and where it's white.

Changed paths:
    graphics/macgui/macmenu.cpp


diff --git a/graphics/macgui/macmenu.cpp b/graphics/macgui/macmenu.cpp
index 7dc551f622c..2b3aeffb9a5 100644
--- a/graphics/macgui/macmenu.cpp
+++ b/graphics/macgui/macmenu.cpp
@@ -998,7 +998,7 @@ template <typename T>
 static void drawMenuDelimiter(ManagedSurface &srcSurf, Common::Rect *r, int y, uint32 black, uint32 white) {
 	bool flip = r->left & 2;
 	T *ptr = (T *)srcSurf.getBasePtr(r->left + 1, y);
-	for (int xx = r->left + 1; xx <= r->right - 1; xx++, ptr++) {
+	for (int xx = r->left + 1; xx <= r->right - 2; xx++, ptr++) {
 		*ptr = flip ? black : white;
 		flip = !flip;
 	}




More information about the Scummvm-git-logs mailing list