Mac: Hide cursor in relative mode.
This hides the cursor when you SDL_SetRelativeMouseMode, as intended. Fixes http://bugzilla.libsdl.org/show_bug.cgi?id=1860
This commit is contained in:
parent
449d63452e
commit
95cf57b19f
1 changed files with 1 additions and 1 deletions
|
@ -538,7 +538,7 @@ static __inline__ void ConvertNSRect(NSRect *r)
|
|||
[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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue