Navigation Menu

Skip to content

Commit

Permalink
Hum.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 31, 2004
1 parent 3366f02 commit 95e2e00
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/video/quartz/SDL_QuartzWM.m
Expand Up @@ -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;
}
}
}

Expand Down

0 comments on commit 95e2e00

Please sign in to comment.