aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kiewitz2016-02-09 22:58:28 +0100
committerMartin Kiewitz2016-02-09 22:58:28 +0100
commitfb90140beeaf60440dd1dc2ad0dcfca79968f92b (patch)
treeea87db9acdcb82b91ff9f446682f4a87a6a52a25
parent7807bcb76ba25879268dfe30b61f2bf64c7abd7f (diff)
downloadscummvm-rg350-fb90140beeaf60440dd1dc2ad0dcfca79968f92b.tar.gz
scummvm-rg350-fb90140beeaf60440dd1dc2ad0dcfca79968f92b.tar.bz2
scummvm-rg350-fb90140beeaf60440dd1dc2ad0dcfca79968f92b.zip
AGI: Use special Apple IIgs SQ1 palette for SQ1
Was already documented inside palette.h, but wasn't used yet
-rw-r--r--engines/agi/graphics.cpp11
-rw-r--r--engines/agi/palette.h3
2 files changed, 13 insertions, 1 deletions
diff --git a/engines/agi/graphics.cpp b/engines/agi/graphics.cpp
index ba5895ccd1..06f9285bb3 100644
--- a/engines/agi/graphics.cpp
+++ b/engines/agi/graphics.cpp
@@ -87,7 +87,16 @@ int GfxMgr::initVideo() {
}
break;
case Common::kRenderApple2GS:
- initPalette(_paletteGfxMode, PALETTE_APPLE_II_GS, 16, 4);
+ switch (_vm->getGameID()) {
+ case GID_SQ1:
+ // Special one, only used for Space Quest 1 on Apple IIgs. Is the same as Amiga v1 palette
+ initPalette(_paletteGfxMode, PALETTE_APPLE_II_GS_SQ1, 16, 4);
+ break;
+ default:
+ // Regular "standard" Apple IIgs palette, used by everything else
+ initPalette(_paletteGfxMode, PALETTE_APPLE_II_GS, 16, 4);
+ break;
+ }
break;
case Common::kRenderAtariST:
initPalette(_paletteGfxMode, PALETTE_ATARI_ST, 16, 3);
diff --git a/engines/agi/palette.h b/engines/agi/palette.h
index f66582b9b6..e0db81ed7b 100644
--- a/engines/agi/palette.h
+++ b/engines/agi/palette.h
@@ -122,6 +122,9 @@ static const uint8 PALETTE_APPLE_II_GS[16 * 3] = {
0xF, 0xF, 0xF
};
+// Re-use Amiga v1 palette for Apple IIgs Space Quest 1
+#define PALETTE_APPLE_II_GS_SQ1 PALETTE_AMIGA_V1
+
/**
* First generation Amiga & Apple IIGS AGI palette.
* A 16-color, 12-bit RGB palette.