We should be checking our scaled image height against the allocation height rather than the allocation width.
Signed-off-by: Bryce Harrington <[email protected]> --- clients/image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/image.c b/clients/image.c index d28f221..4126305 100644 --- a/clients/image.c +++ b/clients/image.c @@ -93,7 +93,7 @@ clamp_view(struct image *image) image->matrix.x0 = allocation.width - sw; } - if (sh < allocation.width) { + if (sh < allocation.height) { image->matrix.y0 = (allocation.height - image->height * scale) / 2; } else { -- 1.9.1 _______________________________________________ wayland-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/wayland-devel
