mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-17 23:44:22 +00:00
Fixed the inventory bug that's been reported in the forums
svn-id: r33288
This commit is contained in:
parent
5ab21dcb05
commit
84505d6374
@ -368,8 +368,8 @@ void SetAuxCursor(SCNHANDLE hFilm) {
|
||||
assert(BackPal()); // no background palette
|
||||
pim->hImgPal = TO_LE_32(BackPal()); // Poke in the background palette
|
||||
|
||||
ACoX = (short)(FROM_LE_16(pim->imgWidth)/2 - FROM_LE_16(pim->anioffX));
|
||||
ACoY = (short)(FROM_LE_16(pim->imgHeight)/2 - FROM_LE_16(pim->anioffY));
|
||||
ACoX = (short)(FROM_LE_16(pim->imgWidth)/2 - ((int16) FROM_LE_16(pim->anioffX)));
|
||||
ACoY = (short)(FROM_LE_16(pim->imgHeight)/2 - ((int16) FROM_LE_16(pim->anioffY)));
|
||||
|
||||
// Initialise and insert the auxillary cursor object
|
||||
AcurObj = MultiInitObject(pmi);
|
||||
|
@ -297,10 +297,10 @@ void GetAniOffset(SCNHANDLE hImg, int flags, int *pAniX, int *pAniY) {
|
||||
const IMAGE *pImg = (const IMAGE *)LockMem(hImg);
|
||||
|
||||
// set ani X
|
||||
*pAniX = FROM_LE_16(pImg->anioffX);
|
||||
*pAniX = (int16) FROM_LE_16(pImg->anioffX);
|
||||
|
||||
// set ani Y
|
||||
*pAniY = FROM_LE_16(pImg->anioffY);
|
||||
*pAniY = (int16) FROM_LE_16(pImg->anioffY);
|
||||
|
||||
if (flags & DMA_FLIPH) {
|
||||
// we are flipped horizontally
|
||||
|
Loading…
x
Reference in New Issue
Block a user