Commit 11395472 authored by Sam Lantinga's avatar Sam Lantinga

Hum.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40953
parent d8774258
......@@ -154,9 +154,11 @@ void QZ_PrivateCocoaToSDL (_THIS, NSPoint *p) {
*p = [ window_view convertPoint:*p fromView: nil ];
/* The coordinates need to be inverted */
/* 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;
}
}
}
/* Convert SDL coordinate to window server (CoreGraphics) coordinate */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment