[Scummvm-git-logs] scummvm master -> 70005ab037417cf3657aaf101740b3388c7d8d07
sev-
sev at scummvm.org
Mon May 4 22:37:36 UTC 2020
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:
70005ab037 SCUMM: Add Apple IIgs custom color palette
Commit: 70005ab037417cf3657aaf101740b3388c7d8d07
https://github.com/scummvm/scummvm/commit/70005ab037417cf3657aaf101740b3388c7d8d07
Author: laurentlasalle (laurent.lasalle at gmail.com)
Date: 2020-05-05T00:37:32+02:00
Commit Message:
SCUMM: Add Apple IIgs custom color palette
Changed paths:
engines/scumm/palette.cpp
diff --git a/engines/scumm/palette.cpp b/engines/scumm/palette.cpp
index 556fcc97c5..a3e7bcd593 100644
--- a/engines/scumm/palette.cpp
+++ b/engines/scumm/palette.cpp
@@ -164,6 +164,17 @@ void ScummEngine::resetPalette() {
static const byte tableHercGPalette[] = {
0x00, 0x00, 0x00, 0x00, 0xFF, 0x00
};
+
+ // Palette based on Apple IIgs Technical Notes: IIgs 2523063 Master Color Values
+ // Rearranged to match C64 color positions
+ static const byte tableApple2gsPalette[] = {
+ 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xDD, 0x00, 0x33, 0x44, 0xFF, 0x99,
+ 0xDD, 0x22, 0xDD, 0x00, 0x77, 0x22, 0x00, 0x00, 0x99, 0xFF, 0xFF, 0x00,
+ 0xFF, 0x66, 0x00, 0x88, 0x55, 0x00, 0xFF, 0x99, 0x88, 0x55, 0x55, 0x55,
+ 0xAA, 0xAA, 0xAA, 0x11, 0xDD, 0x00, 0x22, 0x22, 0xFF, 0xAA, 0xAA, 0xAA,
+
+ 0x7F, 0x3B, 0xA6
+ };
#ifdef USE_RGB_COLOR
#ifndef DISABLE_TOWNS_DUAL_LAYER_MODE
@@ -185,8 +196,7 @@ void ScummEngine::resetPalette() {
if (_game.version <= 1) {
if (_game.platform == Common::kPlatformApple2GS) {
- // TODO: unique palette?
- setPaletteFromTable(tableC64Palette, sizeof(tableC64Palette) / 3);
+ setPaletteFromTable(tableApple2gsPalette, sizeof(tableApple2gsPalette) / 3);
} else if (_game.platform == Common::kPlatformC64) {
setPaletteFromTable(tableC64Palette, sizeof(tableC64Palette) / 3);
} else if (_game.platform == Common::kPlatformNES) {
More information about the Scummvm-git-logs
mailing list