image: Combine clamp_view() and center_view ()
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 30 Oct 2012 19:46:25 +0000 (15:46 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 30 Oct 2012 19:46:39 +0000 (15:46 -0400)
commitd3bf6766abeb0650990463f69fd7118c0bf1d188
tree3d07084108f8692f3d8c935ea94648a9169d9502
parent719b2158e724099063fc980ceaa35a92830f13c5
image: Combine clamp_view() and center_view ()

We need to clamp or center on a per axis basis.  If the window is wider
but the image is taller, we need to center horizontally but
clamp vertically.  We can only do that if by combining the two
functions.
clients/image.c