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:
Jørgen P. Tjernø 2013-06-04 13:53:55 -07:00
parent 449d63452e
commit 95cf57b19f

View file

@ -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 {