mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-01 16:35:20 +00:00
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:
parent
974f3e6431
commit
622f3ec78f
@ -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() {
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user