From b63d787caab4723f4f6417f8ad67355114f13976 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Mon, 10 Aug 2009 02:32:19 +0000 Subject: Fix bug when setting up mouse cursor with inventory palette. svn-id: r43200 --- engines/kyra/screen_lok.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'engines/kyra/screen_lok.cpp') 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; } -- cgit v1.2.3