aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2004-08-23 00:41:43 +0000
committerEugene Sandulenko2004-08-23 00:41:43 +0000
commit48c0be7b5f3f11575f5a11939404b4537fa17640 (patch)
tree3a1983f9ae0e47dcad4895589d7472f354e8bfaa
parentbfe88771cbf438de230b85053d5805a6986c1dc8 (diff)
downloadscummvm-rg350-48c0be7b5f3f11575f5a11939404b4537fa17640.tar.gz
scummvm-rg350-48c0be7b5f3f11575f5a11939404b4537fa17640.tar.bz2
scummvm-rg350-48c0be7b5f3f11575f5a11939404b4537fa17640.zip
Fix bug, actually a typo introduced with last cursors improvements. It crashed
all HE7.0+ games with custom cursors. svn-id: r14694
-rw-r--r--scumm/cursor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/cursor.cpp b/scumm/cursor.cpp
index 2b53c48da7..63e20c7c66 100644
--- a/scumm/cursor.cpp
+++ b/scumm/cursor.cpp
@@ -137,7 +137,7 @@ void ScummEngine::setCursorFromBuffer(byte *ptr, int width, int height, int pitc
for (; height; height--) {
memcpy(dst, ptr, width);
dst += width;
- ptr += _screenWidth;
+ ptr += pitch;
}
updateCursor();