From da1a125a1ade505a061c150e57e518f11993edc0 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Mon, 1 Feb 2010 00:23:05 +0000 Subject: SCI: fixing scaling for sci32 svn-id: r47787 --- engines/sci/graphics/gui32.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'engines/sci') 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; -- cgit v1.2.3