From 00dd95ac0a041ab1c2b4655c9b25b0233f148f68 Mon Sep 17 00:00:00 2001 From: Gregory Montoir Date: Mon, 13 Sep 2004 18:01:25 +0000 Subject: fix cursors hotspot svn-id: r15099 --- scumm/intern.h | 2 +- scumm/script_v80he.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'scumm') 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); } } -- cgit v1.2.3