changeset 952:6f5c8bd997aa

Hum.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 31 Aug 2004 04:21:35 +0000
parents 121f56c1277d
children cb5e1d0cad31
files src/video/quartz/SDL_QuartzWM.m
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/quartz/SDL_QuartzWM.m	Mon Aug 30 04:21:51 2004 +0000
+++ b/src/video/quartz/SDL_QuartzWM.m	Tue Aug 31 04:21:35 2004 +0000
@@ -154,8 +154,10 @@
 
         *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;
+        }
     }
 }