mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 22:28:10 +00:00
GOB: Fix Woodruff object videos
svn-id: r55289
This commit is contained in:
parent
94f5bec0f6
commit
f33b84ff3d
@ -184,16 +184,19 @@ void Inter_v4::o4_playVmdOrMusic() {
|
||||
if (_vm->_mult->_objects[props.startFrame].videoSlot > 0)
|
||||
_vm->_vidPlayer->closeVideo(_vm->_mult->_objects[props.startFrame].videoSlot - 1);
|
||||
|
||||
uint32 x = props.x;
|
||||
uint32 y = props.y;
|
||||
|
||||
int slot = _vm->_vidPlayer->openVideo(false, fileName, props);
|
||||
|
||||
_vm->_mult->_objects[props.startFrame].videoSlot = slot + 1;
|
||||
|
||||
if (props.x == -1) {
|
||||
if (x == 0xFFFFFFFF) {
|
||||
*_vm->_mult->_objects[props.startFrame].pPosX = _vm->_vidPlayer->getDefaultX(slot);
|
||||
*_vm->_mult->_objects[props.startFrame].pPosY = _vm->_vidPlayer->getDefaultY(slot);
|
||||
} else {
|
||||
*_vm->_mult->_objects[props.startFrame].pPosX = props.x;
|
||||
*_vm->_mult->_objects[props.startFrame].pPosY = props.y;
|
||||
*_vm->_mult->_objects[props.startFrame].pPosX = x;
|
||||
*_vm->_mult->_objects[props.startFrame].pPosY = y;
|
||||
}
|
||||
|
||||
return;
|
||||
|
@ -737,7 +737,7 @@ void Scenery::updateAnim(int16 layer, int16 frame, int16 animation, int16 flags,
|
||||
_vm->_draw->_spriteLeft, _vm->_draw->_spriteTop,
|
||||
_vm->_draw->_spriteRight, _vm->_draw->_spriteBottom,
|
||||
_vm->_draw->_destSpriteX, _vm->_draw->_destSpriteY,
|
||||
_vm->_draw->_backSurface->getWidth(),
|
||||
_vm->_draw->_backSurface->getWidth(), 1,
|
||||
(_vm->_draw->_transparency != 0) ? 0 : -1);
|
||||
|
||||
_vm->_draw->invalidateRect(_vm->_draw->_destSpriteX, _vm->_draw->_destSpriteY,
|
||||
|
Loading…
Reference in New Issue
Block a user