comparison src/video/quartz/SDL_QuartzWindow.m @ 4070:b8f2db95145e SDL-1.2

Patch from Christian Walther Yes, the idea to use a cursor rectangle instead of [NSCursor set] has occurred to me too, and it does seem to be the most elegant way. Here's my attempt at an implementation
author Sam Lantinga <slouken@libsdl.org>
date Sun, 15 Jul 2007 15:58:00 +0000
parents ef4a796e7f24
children a1b03ba2fcd0
comparison
equal deleted inserted replaced
4069:f19931785c42 4070:b8f2db95145e
20 slouken@libsdl.org 20 slouken@libsdl.org
21 */ 21 */
22 #include "SDL_config.h" 22 #include "SDL_config.h"
23 23
24 #include "SDL_QuartzVideo.h" 24 #include "SDL_QuartzVideo.h"
25 #include "SDL_QuartzWM.h"
25 #include "SDL_QuartzWindow.h" 26 #include "SDL_QuartzWindow.h"
26 27
27 /* 28 /*
28 This function makes the *SDL region* of the window 100% opaque. 29 This function makes the *SDL region* of the window 100% opaque.
29 The genie effect uses the alpha component. Otherwise, 30 The genie effect uses the alpha component. Otherwise,
215 { 216 {
216 QZ_DoDeactivate (current_video); 217 QZ_DoDeactivate (current_video);
217 } 218 }
218 219
219 @end 220 @end
221
222 @implementation SDL_QuartzView
223
224 - (void)resetCursorRects
225 {
226 SDL_Cursor *sdlc = SDL_GetCursor();
227 if (sdlc != NULL && sdlc->wm_cursor != NULL) {
228 [self addCursorRect: [self visibleRect] cursor: sdlc->wm_cursor->nscursor];
229 }
230 }
231
232 @end