aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMartin Kiewitz2010-02-01 00:23:05 +0000
committerMartin Kiewitz2010-02-01 00:23:05 +0000
commitda1a125a1ade505a061c150e57e518f11993edc0 (patch)
treeb3e4eb7d34ed7e4f3183828b239c9279daeb9d90 /engines/sci
parentd1bc12300cc52997d017ff8d92f41ea4ac01fd70 (diff)
downloadscummvm-rg350-da1a125a1ade505a061c150e57e518f11993edc0.tar.gz
scummvm-rg350-da1a125a1ade505a061c150e57e518f11993edc0.tar.bz2
scummvm-rg350-da1a125a1ade505a061c150e57e518f11993edc0.zip
SCI: fixing scaling for sci32
svn-id: r47787
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/graphics/gui32.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/sci/graphics/gui32.cpp b/engines/sci/graphics/gui32.cpp
index 5e3e1269e7..1f6e21d20e 100644
--- a/engines/sci/graphics/gui32.cpp
+++ b/engines/sci/graphics/gui32.cpp
@@ -304,7 +304,10 @@ void SciGui32::frameOut() {
Common::Rect celRect;
View *view = _cache->getView(viewId);
- view->getCelRect(loopNo, celNo, x, y, z, &celRect);
+ if ((scaleX == 128) && (scaleY == 128))
+ view->getCelRect(loopNo, celNo, x, y, z, &celRect);
+ else
+ view->getCelScaledRect(loopNo, celNo, x, y, z, scaleX, scaleY, &celRect);
if (celRect.top < 0 || celRect.top >= _screen->getHeight())
continue;