comparison src/video/quartz/SDL_QuartzWM.m @ 1658:e49147870aac SDL-1.3

glSDL support
author Sam Lantinga <slouken@libsdl.org>
date Mon, 01 May 2006 06:58:33 +0000
parents ef4a796e7f24
children 14717b52abc0
comparison
equal deleted inserted replaced
1657:5b0805ceb50f 1658:e49147870aac
145 else { 145 else {
146 146
147 *p = [ window_view convertPoint:*p toView: nil ]; 147 *p = [ window_view convertPoint:*p toView: nil ];
148 148
149 /* We need a workaround in OpenGL mode */ 149 /* We need a workaround in OpenGL mode */
150 if ( SDL_VideoSurface->flags & SDL_OPENGL ) { 150 if ( SDL_VideoSurface->flags & SDL_INTERNALOPENGL ) {
151 p->y = [window_view frame].size.height - p->y; 151 p->y = [window_view frame].size.height - p->y;
152 } 152 }
153 } 153 }
154 } 154 }
155 155
163 else { 163 else {
164 164
165 *p = [ window_view convertPoint:*p fromView: nil ]; 165 *p = [ window_view convertPoint:*p fromView: nil ];
166 166
167 /* We need a workaround in OpenGL mode */ 167 /* We need a workaround in OpenGL mode */
168 if ( SDL_VideoSurface != NULL && (SDL_VideoSurface->flags & SDL_OPENGL) ) { 168 if ( SDL_VideoSurface != NULL && (SDL_VideoSurface->flags & SDL_INTERNALOPENGL) ) {
169 p->y = [window_view frame].size.height - p->y; 169 p->y = [window_view frame].size.height - p->y;
170 } 170 }
171 } 171 }
172 } 172 }
173 173