[Scummvm-cvs-logs] scummvm master -> 1c19029c5817038da66a1837997ba994337fdea2
bluegr
bluegr at gmail.com
Tue Aug 23 04:19:35 CEST 2016
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:
1c19029c58 SCI32: Fix palette in SCI32 Mac games
Commit: 1c19029c5817038da66a1837997ba994337fdea2
https://github.com/scummvm/scummvm/commit/1c19029c5817038da66a1837997ba994337fdea2
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2016-08-23T05:18:42+03:00
Commit Message:
SCI32: Fix palette in SCI32 Mac games
Changed paths:
engines/sci/graphics/palette32.cpp
diff --git a/engines/sci/graphics/palette32.cpp b/engines/sci/graphics/palette32.cpp
index 2a98c23..c7098bc 100644
--- a/engines/sci/graphics/palette32.cpp
+++ b/engines/sci/graphics/palette32.cpp
@@ -282,10 +282,16 @@ void GfxPalette32::updateHardware(const bool updateScreen) {
bpal[i * 3 + 2] = _currentPalette.colors[i].b;
}
- // 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) {
+ // The last color must always be white
+ bpal[255 * 3 ] = 255;
+ bpal[255 * 3 + 1] = 255;
+ bpal[255 * 3 + 2] = 255;
+ } else {
+ bpal[255 * 3 ] = 0;
+ bpal[255 * 3 + 1] = 0;
+ bpal[255 * 3 + 2] = 0;
+ }
g_system->getPaletteManager()->setPalette(bpal, 0, 256);
if (updateScreen) {
More information about the Scummvm-git-logs
mailing list