float radAngle = (progress * 4 * pi);
CGAffineTransform transform;
NSPoint translation;
NSRect screenFrame = [[_window screen] frame];
float radAngle = (progress * 4 * pi);
CGAffineTransform transform;
NSPoint translation;
NSRect screenFrame = [[_window screen] frame];
- translation.x = screenFrame.origin.x + ([_window frame].size.width / 2.0);
- translation.y = screenFrame.origin.y + ([_window frame].size.height / 2.0);
+ translation.x = /*screenFrame.origin.x + */([_window frame].size.width / 2.0);
+ translation.y = /*screenFrame.origin.y + */([_window frame].size.height / 2.0);
transform = CGAffineTransformMakeTranslation(translation.x, translation.y);
transform = CGAffineTransformRotate(transform, radAngle);
transform = CGAffineTransformMakeTranslation(translation.x, translation.y);
transform = CGAffineTransformRotate(transform, radAngle);
translation.x = -[_window frame].origin.x;
} else if (hPos == ITWindowPositionRight) {
translation.x = -[_window frame].origin.x;
} else {
translation.x = -[_window frame].origin.x;
translation.x = -[_window frame].origin.x;
} else if (hPos == ITWindowPositionRight) {
translation.x = -[_window frame].origin.x;
} else {
translation.x = -[_window frame].origin.x;
CGSSetWindowTransform([NSApp contextID],
(CGSWindowID)[_window windowNumber],
transform);
CGSSetWindowTransform([NSApp contextID],
(CGSWindowID)[_window windowNumber],
transform);