Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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
  • Loading branch information
jorgenpt committed Jun 4, 2013
1 parent cec4da3 commit d3c1882005b4a78aeefeabd8351293a457b86238
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/video/cocoa/SDL_cocoawindow.m
@@ -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 {

0 comments on commit d3c1882

Please sign in to comment.