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

sev- noreply at scummvm.org
Fri May 3 22:10:06 UTC 2024


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:
a2aaa36269 SCUMM: Adjust v80 default cursor palette map.


Commit: a2aaa362694dffd9ff22df49a55f417864a02e68
    https://github.com/scummvm/scummvm/commit/a2aaa362694dffd9ff22df49a55f417864a02e68
Author: Matthew Jimenez (matthew.jimenez at outlook.com)
Date: 2024-05-04T00:10:02+02:00

Commit Message:
SCUMM: Adjust v80 default cursor palette map.
This is functionally the same, but adds the palette index offset rather than a check condition.

Changed paths:
    engines/scumm/cursor.cpp


diff --git a/engines/scumm/cursor.cpp b/engines/scumm/cursor.cpp
index ccf0073b1b4..f50c0cc32fd 100644
--- a/engines/scumm/cursor.cpp
+++ b/engines/scumm/cursor.cpp
@@ -551,7 +551,7 @@ void ScummEngine_v80he::setDefaultCursor() {
 				if (_bytesPerPixel == 2)
 					WRITE_UINT16(_grabbedCursor + (y * _cursor.width + x) * 2, get16BitColor(palette[pixel * 3], palette[pixel * 3 + 1], palette[pixel * 3 + 2]));
 				else
-					_grabbedCursor[y * _cursor.width + x] = (pixel == 0) ? 0xfd : 0xfe;
+					_grabbedCursor[y * _cursor.width + x] = pixel + 0xfd;
 			}
 		}
 	}




More information about the Scummvm-git-logs mailing list