Fix CGS warnings on 10.6
[ITKit.git] / ITZoomWindowEffect.m
index bde7a2d..888e37a 100644 (file)
     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);