diff options
author | Vladimir Menshakov | 2009-11-17 22:09:16 +0000 |
---|---|---|
committer | Vladimir Menshakov | 2009-11-17 22:09:16 +0000 |
commit | da1432cf21374b282c0cd2f85ae790fb792c925b (patch) | |
tree | a80c6d2e6ac3eb9b22b720b3a0b164a3f1cd88b8 /engines/teenagent/scene.cpp | |
parent | f70473e3cd7fa6c5d4691be7bdbd665dfb14e64d (diff) | |
download | scummvm-rg350-da1432cf21374b282c0cd2f85ae790fb792c925b.tar.gz scummvm-rg350-da1432cf21374b282c0cd2f85ae790fb792c925b.tar.bz2 scummvm-rg350-da1432cf21374b282c0cd2f85ae790fb792c925b.zip |
implemented zoomed rendering
svn-id: r45962
Diffstat (limited to 'engines/teenagent/scene.cpp')
-rw-r--r-- | engines/teenagent/scene.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/teenagent/scene.cpp b/engines/teenagent/scene.cpp index 034475760b..744d2b86bd 100644 --- a/engines/teenagent/scene.cpp +++ b/engines/teenagent/scene.cpp @@ -666,6 +666,10 @@ bool Scene::render(OSystem *system) { got_any_animation = true; } else if (!hide_actor) { actor_animation.free(); + uint zoom = 256; + if (_id == 18) { //zoom hack + zoom = 192; + } if (!path.empty()) { const int speed_x = 10, speed_y = 5; @@ -691,7 +695,7 @@ bool Scene::render(OSystem *system) { position.x += (ABS(dp.x) < speed_x? dp.x: SIGN(dp.x) * speed_x); position.y += (ABS(dp.y) < speed_y? dp.y: SIGN(dp.y) * speed_y); - actor_animation_position = teenagent.render(surface, position, o, 1, false); + actor_animation_position = teenagent.render(surface, position, o, 1, false, zoom); if (position == destination) { path.pop_front(); if (path.empty()) { @@ -705,7 +709,7 @@ bool Scene::render(OSystem *system) { } else busy = true; } else - actor_animation_position = teenagent.render(surface, position, orientation, 0, actor_talking); + actor_animation_position = teenagent.render(surface, position, orientation, 0, actor_talking, zoom); } } |