src/video/quartz/SDL_QuartzWM.m
changeset 952 6f5c8bd997aa
parent 951 121f56c1277d
child 983 7f08bd66f1ca
equal deleted inserted replaced
951:121f56c1277d 952:6f5c8bd997aa
   152     }
   152     }
   153     else {
   153     else {
   154 
   154 
   155         *p = [ window_view convertPoint:*p fromView: nil ];
   155         *p = [ window_view convertPoint:*p fromView: nil ];
   156         
   156         
   157         /* The coordinates need to be inverted */
   157         /* If OSX version is 10.3.0 or later, we need a workaround in OpenGL mode */
   158         p->y = [window_view frame].size.height - p->y - 1;
   158         if ( system_version >= 0x1030 && (SDL_VideoSurface->flags & SDL_OPENGL) ) {
       
   159             p->y = [window_view frame].size.height - p->y - 1;
       
   160         }
   159     }
   161     }
   160 }
   162 }
   161 
   163 
   162 /* Convert SDL coordinate to window server (CoreGraphics) coordinate */
   164 /* Convert SDL coordinate to window server (CoreGraphics) coordinate */
   163 CGPoint QZ_PrivateSDLToCG (_THIS, NSPoint *p) {
   165 CGPoint QZ_PrivateSDLToCG (_THIS, NSPoint *p) {