Mercurial > sdl-ios-xcode
diff src/video/cocoa/SDL_cocoamodes.m @ 3136:962357f325e1 gsoc2009_IME
Further polish API, fix crash in test program.
author | Jiang Jiang <gzjjgod@gmail.com> |
---|---|
date | Thu, 06 Aug 2009 08:59:53 +0000 |
parents | 99210400e8b9 |
children |
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoamodes.m Thu Aug 06 08:56:48 2009 +0000 +++ b/src/video/cocoa/SDL_cocoamodes.m Thu Aug 06 08:59:53 2009 +0000 @@ -248,6 +248,11 @@ CGReleaseDisplayFadeReservation(fade_token); } + NSRect frame = [[NSScreen mainScreen] frame]; + NSLog(@"mainScreen frame: %gx%g", frame.size.width, frame.size.height); + + [[NSApp mainWindow] makeKeyAndOrderFront: nil]; + /* There is a bug in Cocoa where NSScreen doesn't synchronize with CGDirectDisplay, so the main screen's frame is wrong.