Hum.
authorSam Lantinga <slouken@libsdl.org>
Tue, 31 Aug 2004 04:21:35 +0000
changeset 9526f5c8bd997aa
parent 951 121f56c1277d
child 953 cb5e1d0cad31
Hum.
src/video/quartz/SDL_QuartzWM.m
     1.1 --- a/src/video/quartz/SDL_QuartzWM.m	Mon Aug 30 04:21:51 2004 +0000
     1.2 +++ b/src/video/quartz/SDL_QuartzWM.m	Tue Aug 31 04:21:35 2004 +0000
     1.3 @@ -154,8 +154,10 @@
     1.4  
     1.5          *p = [ window_view convertPoint:*p fromView: nil ];
     1.6          
     1.7 -        /* The coordinates need to be inverted */
     1.8 -        p->y = [window_view frame].size.height - p->y - 1;
     1.9 +        /* If OSX version is 10.3.0 or later, we need a workaround in OpenGL mode */
    1.10 +        if ( system_version >= 0x1030 && (SDL_VideoSurface->flags & SDL_OPENGL) ) {
    1.11 +            p->y = [window_view frame].size.height - p->y - 1;
    1.12 +        }
    1.13      }
    1.14  }
    1.15