Fix mouse cursors hotspot in HE games.

HE games don't change cursor hotspot, when changing cursor image.

svn-id: r14027
This commit is contained in:
Travis Howell 2004-06-24 12:32:19 +00:00
parent 974f3e6431
commit 622f3ec78f
2 changed files with 3 additions and 7 deletions

View File

@ -160,11 +160,6 @@ void ScummEngine::setCursor(int cursor) {
void ScummEngine::setCursorHotspot(int x, int y) {
_cursor.hotspotX = x;
_cursor.hotspotY = y;
// FIXME this hacks around offset cursor in the humongous games
if (_features & GF_HUMONGOUS) {
_cursor.hotspotX += 15;
_cursor.hotspotY += 15;
}
}
void ScummEngine::updateCursor() {

View File

@ -1388,8 +1388,9 @@ void ScummEngine::setCursorImg(uint img, uint room, uint imgindex) {
w = READ_LE_UINT16(&foir.imhd->v7.width) / 8;
h = READ_LE_UINT16(&foir.imhd->v7.height) / 8;
} else {
setCursorHotspot(READ_LE_UINT16(&foir.imhd->old.hotspot[0].x),
READ_LE_UINT16(&foir.imhd->old.hotspot[0].y));
if (!(_features & GF_HUMONGOUS))
setCursorHotspot(READ_LE_UINT16(&foir.imhd->old.hotspot[0].x),
READ_LE_UINT16(&foir.imhd->old.hotspot[0].y));
w = READ_LE_UINT16(&foir.cdhd->v6.w) / 8;
h = READ_LE_UINT16(&foir.cdhd->v6.h) / 8;
}