[Scummvm-git-logs] scummvm master -> a0cb2d713d29323006bdfd822ad38c07632e6e6b

bluegr noreply at scummvm.org
Thu Feb 19 04:20:26 UTC 2026


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:
a0cb2d713d SCUMM: MM AppleII - Use the original Apple cursor like we do for the other platforms.


Commit: a0cb2d713d29323006bdfd822ad38c07632e6e6b
    https://github.com/scummvm/scummvm/commit/a0cb2d713d29323006bdfd822ad38c07632e6e6b
Author: Robert Megone (robert.megone at gmail.com)
Date: 2026-02-19T06:20:20+02:00

Commit Message:
SCUMM: MM AppleII - Use the original Apple cursor like we do for the other platforms.

Changed paths:
    engines/scumm/cursor.cpp


diff --git a/engines/scumm/cursor.cpp b/engines/scumm/cursor.cpp
index 37ab332d66c..b9a1b90cb55 100644
--- a/engines/scumm/cursor.cpp
+++ b/engines/scumm/cursor.cpp
@@ -136,6 +136,30 @@ static const byte amiga_snail_cursor[] = {
 	0xFF,0xFF,0xFF,0xFF,0xFF,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,
 };
 
+static const byte appleII_main_cursor[] = {
+	0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
+	0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
+	0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
+	0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x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FF,
+};
+
+
 static const byte atari_main_cursor[] = {
 	0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x0F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
 	0xFF,0xFF,0xFF,0xFF,0xFF,0x0F,0xFF,0x0F,0xFF,0x0F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
@@ -826,6 +850,20 @@ void ScummEngine_v2::setBuiltinCursor(int idx) {
 				*dst++ = palette[((c0 >> (7 - j)) & 1) | (((c1 >> (7 - j)) & 1) << 1) | ((idx == 3) ? 4 : 0)];
 		}
 
+	} else if (_game.platform == Common::kPlatformApple2GS) {
+		_cursor.width = 24;
+		_cursor.height = 20;
+		_cursor.hotspotX = 11;
+		_cursor.hotspotY = 10;
+
+		memcpy(_grabbedCursor, appleII_main_cursor, sizeof(appleII_main_cursor));
+
+		for (i = 0; i < ARRAYSIZE(_grabbedCursor); i++) {
+			if (_grabbedCursor[i] == 0x0F) {
+				_grabbedCursor[i] = color;
+			}
+		}
+
 	} else if (_game.platform == Common::kPlatformAtariST) {
 		_cursor.width = 16;
 		_cursor.height = 16;
@@ -869,24 +907,6 @@ void ScummEngine_v2::setBuiltinCursor(int idx) {
 			*(hotspot - _cursor.width * (3 + i) + i) = color;
 			*(hotspot + _cursor.width * (3 + i) + i) = color;
 		}
-	} else if (_game.platform == Common::kPlatformApple2GS && !enhancementEnabled(kEnhVisualChanges)) {
-		_cursor.width = 23;
-		_cursor.height = 21;
-		_cursor.hotspotX = 11;
-		_cursor.hotspotY = 10;
-
-		byte *hotspot = _grabbedCursor + _cursor.hotspotY * _cursor.width + _cursor.hotspotX;
-
-		// A simple crosshair
-		for (i = 0; i < 8; i++) {
-			*(hotspot - 4 - i) = color;
-			*(hotspot + 4 + i) = color;
-		}
-
-		for (i = 0; i < 8; i++) {
-			*(hotspot - _cursor.width * (3 + i)) = color;
-			*(hotspot + _cursor.width * (3 + i)) = color;
-		}
 	} else if (_macGui) {
 		int width, height, hotspotX, hotspotY, animate;
 




More information about the Scummvm-git-logs mailing list