Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Mac: Hide cursor in relative mode.
Browse files Browse the repository at this point in the history
This hides the cursor when you SDL_SetRelativeMouseMode, as intended.

Fixes http://bugzilla.libsdl.org/show_bug.cgi?id=1860
  • Loading branch information
jorgenpt committed Jun 4, 2013
1 parent cec4da3 commit d3c1882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/cocoa/SDL_cocoawindow.m
Expand Up @@ -538,7 +538,7 @@ - (void)resetCursorRects
[super resetCursorRects];
SDL_Mouse *mouse = SDL_GetMouse();

if (mouse->cursor_shown && mouse->cur_cursor) {
if (mouse->cursor_shown && mouse->cur_cursor && !mouse->relative_mode) {
[self addCursorRect:[self bounds]
cursor:mouse->cur_cursor->driverdata];
} else {
Expand Down

0 comments on commit d3c1882

Please sign in to comment.