aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/palette.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2008-01-02 12:58:18 +0000
committerEugene Sandulenko2008-01-02 12:58:18 +0000
commit312346bdb4a229213d9aeb4578e936cf27890bd5 (patch)
treef38224fb346240d927471c34d8b6f7492750e9f8 /engines/scumm/palette.cpp
parentb6f39fb8fb01a0aea046fb5d919b5a1745d51808 (diff)
downloadscummvm-rg350-312346bdb4a229213d9aeb4578e936cf27890bd5.tar.gz
scummvm-rg350-312346bdb4a229213d9aeb4578e936cf27890bd5.tar.bz2
scummvm-rg350-312346bdb4a229213d9aeb4578e936cf27890bd5.zip
Fix for bug #1206994: "FOA AMIGA: Black cursor and text in Dig Site"
svn-id: r30147
Diffstat (limited to 'engines/scumm/palette.cpp')
-rw-r--r--engines/scumm/palette.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/scumm/palette.cpp b/engines/scumm/palette.cpp
index 39bac051e8..160a977940 100644
--- a/engines/scumm/palette.cpp
+++ b/engines/scumm/palette.cpp
@@ -682,6 +682,16 @@ void ScummEngine::darkenPalette(int redScale, int greenScale, int blueScale, int
if (_game.heversion == 70)
setDirtyColors(idx, idx);
+
+ // Original FOA Amiga version skips these colors
+ // Fixes bug #1206994: "FOA AMIGA: Black cursor and text in Dig Site"
+ if (_game.platform == Common::kPlatformAmiga) {
+ if (j < 16) {
+ cptr += 3;
+ continue;
+ }
+ }
+
color = *cptr++;
color = color * redScale / 0xFF;
if (color > max)