Fix double mouse motion in OS X

Simply ignore the event handler for Windowed mode in fullscreen.
This commit is contained in:
Jjgod Jiang 2011-01-21 00:25:08 +01:00
parent 6456acb47b
commit 6a6cc495b4

View file

@ -232,6 +232,9 @@ static __inline__ void ConvertNSRect(NSRect *r)
SDL_Window *window = _data->window;
NSPoint point;
if (window->flags & SDL_WINDOW_FULLSCREEN)
return;
point = [theEvent locationInWindow];
point.y = window->h - point.y;
if ( point.x < 0 || point.x >= window->w ||