diff options
author | Martin Kiewitz | 2010-08-10 15:54:34 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-08-10 15:54:34 +0000 |
commit | 684afb62362b7aff8380d08aa54cc6a24878bfbf (patch) | |
tree | b7f0fef8d389aa58161ee7bda1d2fd1859502011 /engines/sci | |
parent | 3b9ebd6353857a7dda4a0a6361fc95a7a98c6174 (diff) | |
download | scummvm-rg350-684afb62362b7aff8380d08aa54cc6a24878bfbf.tar.gz scummvm-rg350-684afb62362b7aff8380d08aa54cc6a24878bfbf.tar.bz2 scummvm-rg350-684afb62362b7aff8380d08aa54cc6a24878bfbf.zip |
SCI: add scaling support to kAddToPic
fixes laurabow2 bug #3041226
svn-id: r51952
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/graphics/animate.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/sci/graphics/animate.cpp b/engines/sci/graphics/animate.cpp index 7c7c3f2abf..1e9beab607 100644 --- a/engines/sci/graphics/animate.cpp +++ b/engines/sci/graphics/animate.cpp @@ -533,11 +533,8 @@ void GfxAnimate::addToPicDrawCels() { // Get the corresponding view view = _cache->getView(it->viewId); - // Create rect according to coordinates and given cel - view->getCelRect(it->loopNo, it->celNo, it->x, it->y, it->z, it->celRect); - // draw corresponding cel - _paint16->drawCel(it->viewId, it->loopNo, it->celNo, it->celRect, it->priority, it->paletteNo); + _paint16->drawCel(it->viewId, it->loopNo, it->celNo, it->celRect, it->priority, it->paletteNo, it->scaleX, it->scaleY); if ((it->signal & kSignalIgnoreActor) == 0) { it->celRect.top = CLIP<int16>(_ports->kernelPriorityToCoordinate(it->priority) - 1, it->celRect.top, it->celRect.bottom - 1); _paint16->fillRect(it->celRect, GFX_SCREEN_MASK_CONTROL, 0, 0, 15); @@ -681,6 +678,7 @@ void GfxAnimate::addToPicSetPicNotValid() { void GfxAnimate::kernelAddToPicList(reg_t listReference, int argc, reg_t *argv) { List *list; + byte tempPicNotValid = 0; _ports->setPort((Port *)_ports->_picWind); @@ -689,6 +687,7 @@ void GfxAnimate::kernelAddToPicList(reg_t listReference, int argc, reg_t *argv) error("kAddToPic called with non-list as parameter"); makeSortedList(list); + fill(tempPicNotValid); addToPicDrawCels(); addToPicSetPicNotValid(); |