[Scummvm-git-logs] scummvm master -> 007cce14d0983c8388a7309bf762f4e5551d8eb1

AndywinXp noreply at scummvm.org
Sat Jan 31 22:51:07 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:
007cce14d0 SCUMM: HE: Fix #16470


Commit: 007cce14d0983c8388a7309bf762f4e5551d8eb1
    https://github.com/scummvm/scummvm/commit/007cce14d0983c8388a7309bf762f4e5551d8eb1
Author: AndywinXp (andywinxp at gmail.com)
Date: 2026-01-31T23:51:00+01:00

Commit Message:
SCUMM: HE: Fix #16470

"SCUMM: PUTTSFUNSHOP: Cursors are missing graphics"

The black and white cursor mode should never use the game palette

Changed paths:
    engines/scumm/he/wiz_he.cpp


diff --git a/engines/scumm/he/wiz_he.cpp b/engines/scumm/he/wiz_he.cpp
index b03bf45d94a..e19f117e051 100644
--- a/engines/scumm/he/wiz_he.cpp
+++ b/engines/scumm/he/wiz_he.cpp
@@ -1165,13 +1165,21 @@ void Wiz::loadWizCursor(int resId, int palette, bool useColor) {
 					((uint16 *)cursor)[i] = 0x7FFF;
 			}
 		}
+
+		const byte black[3] = { 0x00, 0x00, 0x00 };
+		const byte white[3] = { 0xFF, 0xFF, 0xFF };
+
+		CursorMan.replaceCursorPalette(black, 0, 1);
+		CursorMan.replaceCursorPalette(white, 15, 1);
 	}
 
 	_vm->setCursorHotspot(x, y);
 	_vm->setCursorFromBuffer(cursor, cw, ch, cw * _vm->_bytesPerPixel);
 
 	// Since we set up cursor palette for default cursor, disable it now...
-	CursorMan.disableCursorPalette(true);
+	if (useColor) {
+		CursorMan.disableCursorPalette(true);
+	}
 }
 
 #define ADD_REQUIRED_IMAGE(whatImageIsRequired) {                                                                                    \




More information about the Scummvm-git-logs mailing list