Quartz: Don't use -[NSWindow center] on the fullscreen window. SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Mon, 18 Jul 2011 20:32:40 -0700
branchSDL-1.2
changeset 5574 7b7ad16f9704
parent 5569 d81e8404bd7f
child 5575 0d5999bb4ba5
Quartz: Don't use -[NSWindow center] on the fullscreen window. "Centering" is a little off-center, vertically. Apparently in non-fullscreen apps, this is more aestetically pleasing or something. Fixes positioning on fullscreen video modes on Mac OS X.
src/video/quartz/SDL_QuartzVideo.m
--- a/src/video/quartz/SDL_QuartzVideo.m	Sun Jul 17 03:08:53 2011 -0700
+++ b/src/video/quartz/SDL_QuartzVideo.m	Mon Jul 18 20:32:40 2011 -0700
@@ -589,7 +589,6 @@
 
     [ qz_window setHasShadow:NO];
     [ qz_window setOpaque:YES];
-    [ qz_window center ];
     [ qz_window makeKeyAndOrderFront:nil ];
 
     /* If we don't hide menu bar, it will get events and interrupt the program */