mirror of
https://github.com/yawut/SDL.git
synced 2026-04-25 07:52:57 -05:00
Fix double mouse motion in OS X
Simply ignore the event handler for Windowed mode in fullscreen.
This commit is contained in:
parent
4e6ca7f51e
commit
bb50647d2f
|
|
@ -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 ||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user