* Made the minimum zoom depend on the actual zoom factor, too. This fixes the

wrong resizing as observed by humdinger.
* I did not remove the limit altogether, because it's a bit odd to be able to
  zoom out until you only see a pixel from the original image... Maybe someone
  has a better idea on how to go about this.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40582 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2011-02-20 15:39:25 +00:00
parent 83d2f58767
commit ebd792d8c1

View File

@ -1538,8 +1538,8 @@ ShowImageView::SetZoom(float zoom, BPoint where)
float fitToBoundsZoom = _FitToBoundsZoom();
if (zoom > 32)
zoom = 32;
if (zoom < fitToBoundsZoom / 2)
zoom = fitToBoundsZoom / 2;
if (zoom < fitToBoundsZoom / 2 && zoom < 0.25)
zoom = min_c(fitToBoundsZoom / 2, 0.25);
if (zoom == fZoom) {
// window size might have changed