aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.