diff options
Diffstat (limited to 'engines/gob/mult_v2.cpp')
-rw-r--r-- | engines/gob/mult_v2.cpp | 27 |
1 files changed, 5 insertions, 22 deletions
diff --git a/engines/gob/mult_v2.cpp b/engines/gob/mult_v2.cpp index 70ccb1ffd5..2d53f893f2 100644 --- a/engines/gob/mult_v2.cpp +++ b/engines/gob/mult_v2.cpp @@ -428,7 +428,7 @@ void Mult_v2::playMult(int16 startFrame, int16 endFrame, char checkEscape, _vm->_util->setFrameRate(_multData2->frameRate); _vm->_anim->_areaTop = 0; _vm->_anim->_areaLeft = 0; - _vm->_anim->_areaWidth = 320; + _vm->_anim->_areaWidth = _vm->_video->_surfWidth; _vm->_anim->_areaHeight = 200; _objCount = 4; @@ -472,26 +472,9 @@ void Mult_v2::playMult(int16 startFrame, int16 endFrame, char checkEscape, } _vm->_draw->adjustCoords(0, &_vm->_anim->_areaWidth, &_vm->_anim->_areaHeight); + _vm->_draw->initBigSprite(22, _vm->_anim->_areaWidth, _vm->_anim->_areaHeight, 0); + _vm->_anim->_animSurf = _vm->_draw->_spritesArray[22]; - if ((_vm->_global->_videoMode == 0x13) && _vm->_video->_extraMode && - ((_vm->_draw->_backSurface->width * _vm->_draw->_backSurface->height) / 2 - + (_vm->_anim->_areaWidth * _vm->_anim->_areaHeight) / 4) < 64000) { - warning("GOB2 Stub! Mult_v2::playMult(), wide frontSurface, using the extra space as animSurf"); -/* _vm->_anim->_animSurf = new Video::SurfaceDesc; - memcpy(_vm->_anim->_animSurf, _vm->_draw->_frontSurface, sizeof(Video::SurfaceDesc)); - _vm->_anim->_animSurf->width = (_vm->_anim->_areaLeft + _vm->_anim->_areaWidth - 1) | 7; - _vm->_anim->_animSurf->width -= (_vm->_anim->_areaLeft & 0x0FFF8) - 1; - _vm->_anim->_animSurf->height = _vm->_anim->_areaHeight; - _vm->_anim->_animSurf->vidPtr += - (_vm->_draw->_backSurface->width * _vm->_draw->_backSurface->height) / 2; - _vm->_draw->_spritesArray[22] = _vm->_anim->_animSurf;*/ - _vm->_draw->initBigSprite(22, _vm->_anim->_areaWidth, _vm->_anim->_areaHeight, 0); - _vm->_anim->_animSurf = _vm->_draw->_spritesArray[22]; - } else { - _vm->_draw->initBigSprite(22, _vm->_anim->_areaWidth, _vm->_anim->_areaHeight, 0); - _vm->_anim->_animSurf = _vm->_draw->_spritesArray[22]; - } - _vm->_draw->adjustCoords(1, &_vm->_anim->_areaWidth, &_vm->_anim->_areaHeight); _vm->_draw->_sourceSurface = 21; _vm->_draw->_destSurface = 22; @@ -499,7 +482,7 @@ void Mult_v2::playMult(int16 startFrame, int16 endFrame, char checkEscape, _vm->_draw->_destSpriteY = 0; _vm->_draw->_spriteLeft = 0; _vm->_draw->_spriteTop = 0; - _vm->_draw->_spriteRight = 320; + _vm->_draw->_spriteRight = _vm->_video->_surfWidth; _vm->_draw->_spriteBottom = 200; _vm->_draw->_transparency = 0; _vm->_draw->spriteOperation(0); @@ -631,7 +614,7 @@ char Mult_v2::drawStatics(char stop) { _vm->_draw->_destSpriteY = 0; _vm->_draw->_spriteLeft = 0; _vm->_draw->_spriteTop = 0; - _vm->_draw->_spriteRight = 320; + _vm->_draw->_spriteRight = _vm->_video->_surfWidth; _vm->_draw->_spriteBottom = 200; _vm->_draw->_transparency = 0; _vm->_draw->spriteOperation(0); |