[Commits] SDL: Quartz: Don't use -[NSWindow center] on the fullscreen window.
libsdl.org revision control
commits-owner at libsdl.org
Mon Jul 18 20:33:29 PDT 2011
details: http://hg.libsdl.org/SDL/rev/7b7ad16f9704
changeset: 5574:7b7ad16f9704
user: Ryan C. Gordon <icculus at icculus.org>
date: Mon Jul 18 20:32:40 2011 -0700
description:
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.
diffstat:
src/video/quartz/SDL_QuartzVideo.m | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diffs (11 lines):
diff -r d81e8404bd7f -r 7b7ad16f9704 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 */
More information about the commits
mailing list