From b4a4557cb7ed508b586007a78c4d972e43cc4781 Mon Sep 17 00:00:00 2001 From: Eric Petit Date: Fri, 10 Feb 2006 19:17:54 +0000 Subject: [PATCH] Simplification --- macosx/Controller.m | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index ad05565dd..c843ca975 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -254,16 +254,7 @@ static void sleepCallBack( void * controller, io_service_t y, //place the window if not open if (![fPrefsWindow isVisible]) { - NSRect prefsFrame, screenRect; - NSPoint point; - - prefsFrame = [fPrefsWindow frame]; - screenRect = [[NSScreen mainScreen] visibleFrame]; - point.x = (screenRect.size.width - prefsFrame.size.width) * 0.5; - point.y = screenRect.origin.y + screenRect.size.height * 0.67 + - prefsFrame.size.height * 0.33; - - [fPrefsWindow setFrameTopLeftPoint: point]; + [fPrefsWindow center]; } [fPrefsWindow makeKeyAndOrderFront:NULL];