From f27c8284a57bf77aa96a2950f5695d81a15b8bdc Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Wed, 27 Jan 2010 11:18:05 +0000 Subject: SCI: scaling for non-regular cels, scaling for reanimate (fixes pharkas demo, fixes lb2 cd credit windows) svn-id: r47594 --- engines/sci/graphics/animate.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engines/sci/graphics/animate.cpp b/engines/sci/graphics/animate.cpp index dc008314de..439240a43f 100644 --- a/engines/sci/graphics/animate.cpp +++ b/engines/sci/graphics/animate.cpp @@ -305,7 +305,7 @@ void SciGuiAnimate::update() { if (signal & kSignalAlwaysUpdate) { // draw corresponding cel - _gfx->drawCel(listEntry->viewId, listEntry->loopNo, listEntry->celNo, listEntry->celRect, listEntry->priority, listEntry->paletteNo); + _gfx->drawCel(listEntry->viewId, listEntry->loopNo, listEntry->celNo, listEntry->celRect, listEntry->priority, listEntry->paletteNo, listEntry->scaleX, listEntry->scaleY); listEntry->showBitsFlag = true; signal &= 0xFFFF ^ (kSignalStopUpdate | kSignalViewUpdated | kSignalNoUpdate | kSignalForceUpdate); @@ -351,7 +351,7 @@ void SciGuiAnimate::update() { if (signal & kSignalNoUpdate && !(signal & kSignalHidden)) { // draw corresponding cel - _gfx->drawCel(listEntry->viewId, listEntry->loopNo, listEntry->celNo, listEntry->celRect, listEntry->priority, listEntry->paletteNo); + _gfx->drawCel(listEntry->viewId, listEntry->loopNo, listEntry->celNo, listEntry->celRect, listEntry->priority, listEntry->paletteNo, listEntry->scaleX, listEntry->scaleY); listEntry->showBitsFlag = true; if ((signal & kSignalIgnoreActor) == 0) { @@ -501,7 +501,7 @@ void SciGuiAnimate::reAnimate(Common::Rect rect) { lastCastCount = _lastCastCount; while (lastCastCount > 0) { lastCastEntry->castHandle = _gfx->BitsSave(lastCastEntry->celRect, SCI_SCREEN_MASK_VISUAL|SCI_SCREEN_MASK_PRIORITY); - _gfx->drawCel(lastCastEntry->viewId, lastCastEntry->loopNo, lastCastEntry->celNo, lastCastEntry->celRect, lastCastEntry->priority, lastCastEntry->paletteNo); + _gfx->drawCel(lastCastEntry->viewId, lastCastEntry->loopNo, lastCastEntry->celNo, lastCastEntry->celRect, lastCastEntry->priority, lastCastEntry->paletteNo, lastCastEntry->scaleX, lastCastEntry->scaleY); lastCastEntry++; lastCastCount--; } _gfx->BitsShow(rect); -- cgit v1.2.3