Spin & Zoom effect.
[ITKit.git] / ITSpinWindowEffect.m
index b3137bf..ad28792 100755 (executable)
     translation.y = screenFrame.origin.y + ([_window frame].size.height / 2.0);
     transform = CGAffineTransformMakeTranslation(translation.x, translation.y);
     transform = CGAffineTransformRotate(transform, radAngle);
-    //transform = CGAffineTransformScale(transform, 1.0 / progress, 1.0 / progress);
     transform = CGAffineTransformTranslate(transform, -translation.x, -translation.y);
     
     if (hPos == ITWindowPositionLeft) {
     translation.y = -( [[_window screen] frame].size.height - [_window frame].origin.y - [_window frame].size.height );
     
     transform = CGAffineTransformTranslate(transform, translation.x, translation.y);
-    
     CGSSetWindowTransform([NSApp contextID],
                           (CGSWindowID)[_window windowNumber],
                           transform);