clients: Fix height typo in clamp_view()
authorBryce Harrington <bryce@osg.samsung.com>
Wed, 9 Sep 2015 02:24:12 +0000 (19:24 -0700)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 9 Sep 2015 07:07:27 +0000 (10:07 +0300)
commitae6f1bb3f7f7cc90523f6fa184c52ee8d77d9bc5
tree9e8065fd6ae0bb2f20aefec852db9bc90d1a05a4
parent76287896408841428804ab94dce2adb8b0b896e3
clients: Fix height typo in clamp_view()

We should be checking our scaled image height against the allocation
height rather than the allocation width.

Fixes vertical image motion when horizontal motion restricted, i.e.
when window is wide and short compared to the image.

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
clients/image.c