[Scummvm-cvs-logs] SF.net SVN: scummvm:[45963] scummvm/trunk/engines/teenagent/scene.cpp

megath at users.sourceforge.net megath at users.sourceforge.net
Tue Nov 17 23:22:51 CET 2009


Revision: 45963
          http://scummvm.svn.sourceforge.net/scummvm/?rev=45963&view=rev
Author:   megath
Date:     2009-11-17 22:22:40 +0000 (Tue, 17 Nov 2009)

Log Message:
-----------
implemented real zooming in forest house

Modified Paths:
--------------
    scummvm/trunk/engines/teenagent/scene.cpp

Modified: scummvm/trunk/engines/teenagent/scene.cpp
===================================================================
--- scummvm/trunk/engines/teenagent/scene.cpp	2009-11-17 22:09:16 UTC (rev 45962)
+++ scummvm/trunk/engines/teenagent/scene.cpp	2009-11-17 22:22:40 UTC (rev 45963)
@@ -667,8 +667,13 @@
 			} else if (!hide_actor) {
 				actor_animation.free();
 				uint zoom = 256;
-				if (_id == 18) { //zoom hack
-					zoom = 192;
+				const int zoom_min = 115, zoom_max = 150;
+				if (_id == 18 && position.y < zoom_max) { //zoom hack
+					if (position.y >= zoom_min) 
+						zoom = 128 + 128 * (position.y - zoom_min) / (zoom_max - zoom_min);
+					else 
+						zoom = 128;
+					debug(0, "zoom = %u", zoom);
 				}
 
 				if (!path.empty()) {


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