From 2dd4c408680d128a61ba6c0919abc3e0c4ee4b66 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Tue, 19 Aug 2003 04:28:52 +0000 Subject: [PATCH] Fix cursor cycle color for v1 games svn-id: r9775 --- scumm/gfx.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index cae41f997d7..8d46f6afa31 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -151,10 +151,16 @@ static const TransitionEffect transitionEffects[5] = { /* * Mouse cursor cycle colors (for the default crosshair). */ +static const byte default_v1_cursor_colors[4] = { + 1, 1, 12, 11 +}; + static const byte default_cursor_colors[4] = { 15, 15, 7, 8 }; + + static const uint16 default_cursor_images[5][16] = { /* cross-hair */ { 0x0080, 0x0080, 0x0080, 0x0080, 0x0080, 0x0080, 0x0000, 0x7e3f, @@ -3502,7 +3508,10 @@ void Scumm::decompressDefaultCursor(int idx) { memset(_grabbedCursor, 0xFF, sizeof(_grabbedCursor)); - color = default_cursor_colors[idx]; + if (_version == 1) + color = default_v1_cursor_colors[idx]; + else + color = default_cursor_colors[idx]; // FIXME: None of the stock cursors are right for Loom. Why is that?