[Scummvm-cvs-logs] SF.net SVN: scummvm:[47787] scummvm/trunk/engines/sci/graphics/gui32.cpp
m_kiewitz at users.sourceforge.net
m_kiewitz at users.sourceforge.net
Mon Feb 1 01:23:05 CET 2010
Revision: 47787
http://scummvm.svn.sourceforge.net/scummvm/?rev=47787&view=rev
Author: m_kiewitz
Date: 2010-02-01 00:23:05 +0000 (Mon, 01 Feb 2010)
Log Message:
-----------
SCI: fixing scaling for sci32
Modified Paths:
--------------
scummvm/trunk/engines/sci/graphics/gui32.cpp
Modified: scummvm/trunk/engines/sci/graphics/gui32.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/gui32.cpp 2010-01-31 23:53:25 UTC (rev 47786)
+++ scummvm/trunk/engines/sci/graphics/gui32.cpp 2010-02-01 00:23:05 UTC (rev 47787)
@@ -304,7 +304,10 @@
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;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list