diff options
author | Gregory Montoir | 2004-09-13 18:01:25 +0000 |
---|---|---|
committer | Gregory Montoir | 2004-09-13 18:01:25 +0000 |
commit | 00dd95ac0a041ab1c2b4655c9b25b0233f148f68 (patch) | |
tree | 0c9258e27fddfab48a0546d2ef89f786a09da0cb /scumm | |
parent | a57fcac59a47c406251e129e327487db90a14507 (diff) | |
download | scummvm-rg350-00dd95ac0a041ab1c2b4655c9b25b0233f148f68.tar.gz scummvm-rg350-00dd95ac0a041ab1c2b4655c9b25b0233f148f68.tar.bz2 scummvm-rg350-00dd95ac0a041ab1c2b4655c9b25b0233f148f68.zip |
fix cursors hotspot
svn-id: r15099
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/intern.h | 2 | ||||
-rw-r--r-- | scumm/script_v80he.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/scumm/intern.h b/scumm/intern.h index 892f31c7ac..6963756b8f 100644 --- a/scumm/intern.h +++ b/scumm/intern.h @@ -784,7 +784,7 @@ protected: virtual void executeOpcode(byte i); virtual const char *getOpcodeDesc(byte i); - void loadImgSpot(int resId, int state, Common::Point spot); + void loadImgSpot(int resId, int state, Common::Point &spot); void loadWizCursor(int resId, int resType, bool state); diff --git a/scumm/script_v80he.cpp b/scumm/script_v80he.cpp index e6eb4b20cb..84645f2605 100644 --- a/scumm/script_v80he.cpp +++ b/scumm/script_v80he.cpp @@ -537,7 +537,7 @@ void ScummEngine_v80he::o80_cursorCommand() { VAR(VAR_USERPUT) = _userPut; } -void ScummEngine_v80he::loadImgSpot(int resId, int state, Common::Point spot) { +void ScummEngine_v80he::loadImgSpot(int resId, int state, Common::Point &spot) { const uint8 *dataPtr = getResourceAddress(rtImage, resId); if (!dataPtr) error("loadImgSpot: unknown Image %d", resId); @@ -547,8 +547,8 @@ void ScummEngine_v80he::loadImgSpot(int resId, int state, Common::Point spot) { if (!spotPtr) { spot.x = spot.y = 0; } else { - spot.x = (int16)READ_LE_UINT32(spotPtr + 8); - spot.y = (int16)READ_LE_UINT32(spotPtr + 12); + spot.x = (int16)READ_LE_UINT32(spotPtr + 0); + spot.y = (int16)READ_LE_UINT32(spotPtr + 4); } } |