From 95e2e009d49ff30063f4dcd5e3e91f0c61c7a23d Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 31 Aug 2004 04:21:35 +0000 Subject: [PATCH] Hum. --- src/video/quartz/SDL_QuartzWM.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/video/quartz/SDL_QuartzWM.m b/src/video/quartz/SDL_QuartzWM.m index 00cc4575c..2c3319b76 100644 --- a/src/video/quartz/SDL_QuartzWM.m +++ b/src/video/quartz/SDL_QuartzWM.m @@ -154,8 +154,10 @@ void QZ_PrivateCocoaToSDL (_THIS, NSPoint *p) { *p = [ window_view convertPoint:*p fromView: nil ]; - /* The coordinates need to be inverted */ - p->y = [window_view frame].size.height - p->y - 1; + /* If OSX version is 10.3.0 or later, we need a workaround in OpenGL mode */ + if ( system_version >= 0x1030 && (SDL_VideoSurface->flags & SDL_OPENGL) ) { + p->y = [window_view frame].size.height - p->y - 1; + } } }