diff options
author | Martin Kiewitz | 2010-01-27 11:18:05 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-01-27 11:18:05 +0000 |
commit | f27c8284a57bf77aa96a2950f5695d81a15b8bdc (patch) | |
tree | 23425d7d996c532e480de940529e5358d6c03001 | |
parent | 7e1051d8ec24615089a88f632e3f865b37283cbe (diff) | |
download | scummvm-rg350-f27c8284a57bf77aa96a2950f5695d81a15b8bdc.tar.gz scummvm-rg350-f27c8284a57bf77aa96a2950f5695d81a15b8bdc.tar.bz2 scummvm-rg350-f27c8284a57bf77aa96a2950f5695d81a15b8bdc.zip |
SCI: scaling for non-regular cels, scaling for reanimate (fixes pharkas demo, fixes lb2 cd credit windows)
svn-id: r47594
-rw-r--r-- | engines/sci/graphics/animate.cpp | 6 |
1 files 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); |