[Scummvm-git-logs] scummvm master -> 2a092052bcd9e1aa61fc8efaabfb3ec24ce94b11

sluicebox noreply at scummvm.org
Mon May 12 07:04:07 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:
2a092052bc SCI: Fix SLATER Mac palette parsing


Commit: 2a092052bcd9e1aa61fc8efaabfb3ec24ce94b11
    https://github.com/scummvm/scummvm/commit/2a092052bcd9e1aa61fc8efaabfb3ec24ce94b11
Author: sluicebox (22204938+sluicebox at users.noreply.github.com)
Date: 2025-05-11T23:58:58-07:00

Commit Message:
SCI: Fix SLATER Mac palette parsing

Changed paths:
    engines/sci/graphics/palette16.cpp


diff --git a/engines/sci/graphics/palette16.cpp b/engines/sci/graphics/palette16.cpp
index 702f0c8a063..c9af3766f51 100644
--- a/engines/sci/graphics/palette16.cpp
+++ b/engines/sci/graphics/palette16.cpp
@@ -150,12 +150,13 @@ void GfxPalette::createFromData(const SciSpan<const byte> &data, Palette *palett
 		palFormat = data[32];
 		palOffset = 37;
 		palColorStart = data[25];
-		if (g_sci->getGameId() != GID_HOYLE4) {
-			palColorCount = data.getUint16SEAt(29);
-		} else {
-			// HOYLE4's SCI1.1 palettes are little endian even in
-			// the Mac version, unlike every other SCI1.1 Mac game.
+		if (g_sci->getGameId() == GID_HOYLE4 ||
+			g_sci->getGameId() == GID_SLATER) {
+			// HOYLE4 and SLATER SCI1.1 palettes are little endian even in
+			// the Mac versions, unlike every other SCI1.1 Mac game.
 			palColorCount = data.getUint16LEAt(29);
+		} else {
+			palColorCount = data.getUint16SEAt(29);
 		}
 	}
 




More information about the Scummvm-git-logs mailing list