mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
implemented real zooming in forest house
svn-id: r45963
This commit is contained in:
parent
da1432cf21
commit
8f68974d22
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user