diff options
author | Johannes Schickel | 2009-08-10 02:32:19 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-08-10 02:32:19 +0000 |
commit | b63d787caab4723f4f6417f8ad67355114f13976 (patch) | |
tree | e28649208856ebd304930e87d99d1bdca89d4cff | |
parent | 2ccffb9075243a29db435ce545f14b0b1051da44 (diff) | |
download | scummvm-rg350-b63d787caab4723f4f6417f8ad67355114f13976.tar.gz scummvm-rg350-b63d787caab4723f4f6417f8ad67355114f13976.tar.bz2 scummvm-rg350-b63d787caab4723f4f6417f8ad67355114f13976.zip |
Fix bug when setting up mouse cursor with inventory palette.
svn-id: r43200
-rw-r--r-- | engines/kyra/screen_lok.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/kyra/screen_lok.cpp b/engines/kyra/screen_lok.cpp index b35f0f5cf0..feddb29dd2 100644 --- a/engines/kyra/screen_lok.cpp +++ b/engines/kyra/screen_lok.cpp @@ -245,9 +245,11 @@ void Screen_LoK::postProcessCursor(uint8 *data, int width, int height, int pitch pitch -= width; for (int y = 0; y < height; ++y) { - for (int x = 0; x < width; ++x) + for (int x = 0; x < width; ++x) { if (*data != _cursorColorKey) - *data++ += 32; + *data += 32; + ++data; + } data += pitch; } |