[Scummvm-git-logs] scummvm master -> 9e0f23aabb8e0321b6829de6ffa56c7b8fb9c09f
csnover
csnover at users.noreply.github.com
Wed Sep 27 19:02:11 CEST 2017
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:
9e0f23aabb SCI32: Fix backwards palette check
Commit: 9e0f23aabb8e0321b6829de6ffa56c7b8fb9c09f
https://github.com/scummvm/scummvm/commit/9e0f23aabb8e0321b6829de6ffa56c7b8fb9c09f
Author: Colin Snover (github.com at zetafleet.com)
Date: 2017-09-27T12:02:01-05:00
Commit Message:
SCI32: Fix backwards palette check
Changed paths:
engines/sci/graphics/palette32.cpp
diff --git a/engines/sci/graphics/palette32.cpp b/engines/sci/graphics/palette32.cpp
index 9a2fa2c..d8a2ead 100644
--- a/engines/sci/graphics/palette32.cpp
+++ b/engines/sci/graphics/palette32.cpp
@@ -531,18 +531,18 @@ void GfxPalette32::updateHardware() {
#endif
#ifdef ENABLE_SCI32_MAC
- if (g_sci->getPlatform() != Common::kPlatformMacintosh) {
- // The last color must always be white
- bpal[255 * 3 ] = 255;
- bpal[255 * 3 + 1] = 255;
- bpal[255 * 3 + 2] = 255;
+ if (g_sci->getPlatform() == Common::kPlatformMacintosh) {
+ bpal[255 * 3 ] = 0;
+ bpal[255 * 3 + 1] = 0;
+ bpal[255 * 3 + 2] = 0;
} else {
#else
{
#endif
- bpal[255 * 3 ] = 0;
- bpal[255 * 3 + 1] = 0;
- bpal[255 * 3 + 2] = 0;
+ // The last color must always be white
+ bpal[255 * 3 ] = 255;
+ bpal[255 * 3 + 1] = 255;
+ bpal[255 * 3 + 2] = 255;
}
// If the system is in a high color mode, which can happen during video
More information about the Scummvm-git-logs
mailing list