diff options
author | Vladimir Menshakov | 2009-11-17 22:22:40 +0000 |
---|---|---|
committer | Vladimir Menshakov | 2009-11-17 22:22:40 +0000 |
commit | 8f68974d2209020a16014d61374d48c180e8e205 (patch) | |
tree | 2cb98a3d0bba307ab6f076ee639322ff10c9e1e9 /engines | |
parent | da1432cf21374b282c0cd2f85ae790fb792c925b (diff) | |
download | scummvm-rg350-8f68974d2209020a16014d61374d48c180e8e205.tar.gz scummvm-rg350-8f68974d2209020a16014d61374d48c180e8e205.tar.bz2 scummvm-rg350-8f68974d2209020a16014d61374d48c180e8e205.zip |
implemented real zooming in forest house
svn-id: r45963
Diffstat (limited to 'engines')
-rw-r--r-- | engines/teenagent/scene.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/teenagent/scene.cpp b/engines/teenagent/scene.cpp index 744d2b86bd..c0b92665ae 100644 --- a/engines/teenagent/scene.cpp +++ b/engines/teenagent/scene.cpp @@ -667,8 +667,13 @@ bool Scene::render(OSystem *system) { } 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()) { |