X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/676d1feebedb6b04b4da4bb58b3ca1282d7740f5..11c398c047d4e737a59c70f13de3cde3a788810a:/ITZoomWindowEffect.m?ds=sidebyside diff --git a/ITZoomWindowEffect.m b/ITZoomWindowEffect.m old mode 100755 new mode 100644 index bde7a2d..888e37a --- a/ITZoomWindowEffect.m +++ b/ITZoomWindowEffect.m @@ -197,6 +197,8 @@ NSPoint translation; NSRect winFrame = [_window frame]; + Zoom = MAX(Zoom, 0.000001); + translation.x = (winFrame.size.width / 2.0); translation.y = (winFrame.size.height / 2.0); transform = CGAffineTransformMakeTranslation(translation.x, translation.y);