AGI: Use special Apple IIgs SQ1 palette for SQ1

Was already documented inside palette.h, but wasn't used yet
This commit is contained in:
Martin Kiewitz 2016-02-09 22:58:28 +01:00
parent 7807bcb76b
commit fb90140bee
2 changed files with 13 additions and 1 deletions

View File

@ -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);

View File

@ -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.