mirror of
https://github.com/yawut/SDL.git
synced 2026-08-20 07:44:03 -05:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user