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

AndywinXp noreply at scummvm.org
Tue Dec 27 14:14:19 UTC 2022


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
e49e3c27f6 SCUMM: ZAK: Fix cursor colors for v1 C64 version


Commit: e49e3c27f696e0b8b0d4b238818121bdc650c9c5
    https://github.com/scummvm/scummvm/commit/e49e3c27f696e0b8b0d4b238818121bdc650c9c5
Author: AndywinXp (andywinxp at gmail.com)
Date: 2022-12-27T15:14:14+01:00

Commit Message:
SCUMM: ZAK: Fix cursor colors for v1 C64 version

Changed paths:
    engines/scumm/cursor.cpp


diff --git a/engines/scumm/cursor.cpp b/engines/scumm/cursor.cpp
index 37043ce07b3..476f48d64ce 100644
--- a/engines/scumm/cursor.cpp
+++ b/engines/scumm/cursor.cpp
@@ -725,7 +725,7 @@ void ScummEngine_v2::setBuiltinCursor(int idx) {
 
 	memset(_grabbedCursor, 0xFF, sizeof(_grabbedCursor));
 
-	if (_game.version == 0)
+	if (_game.platform == Common::kPlatformC64)
 		color = default_v0_cursor_colors[idx];
 	else if (_renderMode == Common::kRenderCGA || _renderMode == Common::kRenderCGAComp)
 		color = (idx & 1) * 3;
@@ -867,7 +867,7 @@ void ScummEngine_v2::setSnailCursor() {
 	} else {
 		memcpy(_grabbedCursor, c64_dos_snail_cursor, sizeof(c64_dos_snail_cursor));
 
-		if (_game.version == 0) {
+		if (_game.platform == Common::kPlatformC64) {
 			for (uint i = 0; i < sizeof(c64_dos_snail_cursor); i++) {
 				if (_grabbedCursor[i] == 0x0F)
 					_grabbedCursor[i] = 0x01;




More information about the Scummvm-git-logs mailing list