[Scummvm-git-logs] scummvm master -> 23997fe27d6f222efb307adbe70bf04153814c98
sev-
noreply at scummvm.org
Sun Sep 28 20:38:40 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:
23997fe27d GRAPHICS: MACGUI: Made beam cursor inversible
Commit: 23997fe27d6f222efb307adbe70bf04153814c98
https://github.com/scummvm/scummvm/commit/23997fe27d6f222efb307adbe70bf04153814c98
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2025-09-28T22:36:49+02:00
Commit Message:
GRAPHICS: MACGUI: Made beam cursor inversible
Changed paths:
graphics/macgui/macwindowmanager.cpp
diff --git a/graphics/macgui/macwindowmanager.cpp b/graphics/macgui/macwindowmanager.cpp
index df0ae4ec82e..dc22e32f538 100644
--- a/graphics/macgui/macwindowmanager.cpp
+++ b/graphics/macgui/macwindowmanager.cpp
@@ -98,6 +98,27 @@ static const byte macCursorBeam[] = {
3, 3, 0, 3, 0, 3, 3, 3, 3, 3, 3,
0, 0, 3, 3, 3, 0, 0, 3, 3, 3, 3,
};
+
+static const byte macCursorBeamMask[] = {
+ 2, 2, 0, 0, 0, 2, 2, 0, 0, 0, 0,
+ 0, 0, 2, 0, 2, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 2, 0, 2, 0, 0, 0, 0, 0, 0,
+ 2, 2, 0, 0, 0, 2, 2, 0, 0, 0, 0,
+};
+
+
static const byte macCursorCrossHair[] = {
3, 3, 3, 3, 3, 0, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 0, 3, 3, 3, 3, 3,
@@ -1284,7 +1305,7 @@ void MacWindowManager::pushCursor(MacCursorType type, Cursor *cursor) {
CursorMan.pushCursorPalette(cursorPalette, 0, 2);
break;
case kMacCursorBeam:
- CursorMan.pushCursor(macCursorBeam, 11, 16, 3, 8, 3);
+ CursorMan.pushCursor(macCursorBeam, 11, 16, 3, 8, 3, false, NULL, macCursorBeamMask);
CursorMan.pushCursorPalette(cursorPalette, 0, 2);
break;
case kMacCursorCrossHair:
@@ -1322,7 +1343,7 @@ void MacWindowManager::replaceCursor(MacCursorType type, Cursor *cursor) {
CursorMan.replaceCursorPalette(cursorPalette, 0, 2);
break;
case kMacCursorBeam:
- CursorMan.replaceCursor(macCursorBeam, 11, 16, 3, 8, 3);
+ CursorMan.replaceCursor(macCursorBeam, 11, 16, 3, 8, 3, false, NULL, macCursorBeamMask);
CursorMan.replaceCursorPalette(cursorPalette, 0, 2);
break;
case kMacCursorCrossHair:
More information about the Scummvm-git-logs
mailing list