mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-25 12:05:53 +00:00
DIRECTOR: Fix cursor hotspot registration
This commit is contained in:
parent
343046bd5e
commit
61f533e3e9
@ -95,8 +95,8 @@ void Cursor::readFromCast(uint cursorId, uint maskId) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
BitmapCastMember *bc = (BitmapCastMember *)(cursorCast);
|
BitmapCastMember *bc = (BitmapCastMember *)(cursorCast);
|
||||||
_hotspotX = bc->_initialRect.left - bc->_regX;
|
_hotspotX = bc->_regX - bc->_initialRect.left;
|
||||||
_hotspotY = bc->_initialRect.top - bc->_regY;
|
_hotspotY = bc->_regY - bc->_initialRect.top;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Cursor::readFromResource(int resourceId) {
|
void Cursor::readFromResource(int resourceId) {
|
||||||
@ -153,6 +153,9 @@ void Cursor::resetCursor(Graphics::MacCursorType type, bool shouldClear, int res
|
|||||||
|
|
||||||
_cursorCastId = castId;
|
_cursorCastId = castId;
|
||||||
_cursorMaskId = maskId;
|
_cursorMaskId = maskId;
|
||||||
|
|
||||||
|
_hotspotX = 0;
|
||||||
|
_hotspotY = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // end of namespace Director
|
} // end of namespace Director
|
||||||
|
Loading…
x
Reference in New Issue
Block a user