diff options
author | Eugene Sandulenko | 2011-08-27 10:23:19 -0700 |
---|---|---|
committer | Eugene Sandulenko | 2011-08-27 10:23:19 -0700 |
commit | 064ab0fd628f660d8565512dfbffb0c11a82f046 (patch) | |
tree | ac553523b5442af31bad9a1a3fa80bb3af85682f /engines/scumm/cursor.cpp | |
parent | 35aa235e4b4c4212b59d00adb77d2e3d00dd440e (diff) | |
parent | cd45d63e064c5f45e911256de75c3efef156337d (diff) | |
download | scummvm-rg350-064ab0fd628f660d8565512dfbffb0c11a82f046.tar.gz scummvm-rg350-064ab0fd628f660d8565512dfbffb0c11a82f046.tar.bz2 scummvm-rg350-064ab0fd628f660d8565512dfbffb0c11a82f046.zip |
Merge pull request #77 from lordhoto/indy4amiga
SCUMM: Implement proper Indy4 Amiga palette handling.
Diffstat (limited to 'engines/scumm/cursor.cpp')
-rw-r--r-- | engines/scumm/cursor.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/scumm/cursor.cpp b/engines/scumm/cursor.cpp index 6739282c9d..36f06a4889 100644 --- a/engines/scumm/cursor.cpp +++ b/engines/scumm/cursor.cpp @@ -609,7 +609,16 @@ void ScummEngine_v5::setBuiltinCursor(int idx) { for (i = 0; i < 1024; i++) WRITE_UINT16(_grabbedCursor + i * 2, 0xFF); } else { - color = default_cursor_colors[idx]; + // Indy4 Amiga uses its own color set for the cursor image. + // This is patchwork code to make the cursor flash in correct colors. + if (_game.platform == Common::kPlatformAmiga && _game.id == GID_INDY4) { + static const uint8 indy4AmigaColors[4] = { + 252, 252, 253, 254 + }; + color = indy4AmigaColors[idx]; + } else { + color = default_cursor_colors[idx]; + } memset(_grabbedCursor, 0xFF, sizeof(_grabbedCursor)); } |