src/video/cocoa/SDL_cocoawindow.m
changeset 7270 76df5476a6ce
parent 7205 b1ca5be78064
child 7271 963d2ba35cfe
equal deleted inserted replaced
7269:f7a0cc4bf74d 7270:76df5476a6ce
   536 - (void)resetCursorRects
   536 - (void)resetCursorRects
   537 {
   537 {
   538     [super resetCursorRects];
   538     [super resetCursorRects];
   539     SDL_Mouse *mouse = SDL_GetMouse();
   539     SDL_Mouse *mouse = SDL_GetMouse();
   540 
   540 
   541     if (mouse->cursor_shown && mouse->cur_cursor) {
   541     if (mouse->cursor_shown && mouse->cur_cursor && !mouse->relative_mode) {
   542         [self addCursorRect:[self bounds]
   542         [self addCursorRect:[self bounds]
   543                      cursor:mouse->cur_cursor->driverdata];
   543                      cursor:mouse->cur_cursor->driverdata];
   544     } else {
   544     } else {
   545         [self addCursorRect:[self bounds]
   545         [self addCursorRect:[self bounds]
   546                      cursor:[NSCursor invisibleCursor]];
   546                      cursor:[NSCursor invisibleCursor]];