aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/graphics.cpp
diff options
context:
space:
mode:
authorMartin Kiewitz2016-02-05 23:52:52 +0100
committerMartin Kiewitz2016-02-05 23:53:26 +0100
commit088c4d118c84a5e64b140d2c160091379dd01bb0 (patch)
treed0bc4e10d10df13cc2ebe9db1b49c40da9024c1e /engines/agi/graphics.cpp
parent093001804541eb01526b112959cf4b68d75279b1 (diff)
downloadscummvm-rg350-088c4d118c84a5e64b140d2c160091379dd01bb0.tar.gz
scummvm-rg350-088c4d118c84a5e64b140d2c160091379dd01bb0.tar.bz2
scummvm-rg350-088c4d118c84a5e64b140d2c160091379dd01bb0.zip
AGI: Adding Macintosh palettes for GR+SQ2
But not actually using the GR palette, because it looks horrible.
Diffstat (limited to 'engines/agi/graphics.cpp')
-rw-r--r--engines/agi/graphics.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/engines/agi/graphics.cpp b/engines/agi/graphics.cpp
index bbdbaba9e5..e5956919b6 100644
--- a/engines/agi/graphics.cpp
+++ b/engines/agi/graphics.cpp
@@ -93,7 +93,23 @@ int GfxMgr::initVideo() {
initPalette(_paletteGfxMode, PALETTE_ATARI_ST, 16, 3);
break;
case Common::kRenderMacintosh:
- initPaletteCLUT(_paletteGfxMode, PALETTE_MACINTOSH_CLUT, 16);
+ switch (_vm->getGameID()) {
+ case GID_KQ3:
+ case GID_PQ1:
+ initPaletteCLUT(_paletteGfxMode, PALETTE_MACINTOSH_CLUT, 16);
+ break;
+ case GID_GOLDRUSH:
+ // We use the common KQ3/PQ1 palette at the moment.
+ // It seems the Gold Rush palette, that came with the game is quite ugly.
+ initPaletteCLUT(_paletteGfxMode, PALETTE_MACINTOSH_CLUT, 16);
+ break;
+ case GID_SQ2:
+ initPaletteCLUT(_paletteGfxMode, PALETTE_MACINTOSH_CLUT3, 16);
+ break;
+ default:
+ initPaletteCLUT(_paletteGfxMode, PALETTE_MACINTOSH_CLUT, 16);
+ break;
+ }
break;
default:
error("initVideo: unsupported render mode");