Commit 6a6cc495 authored by Jjgod Jiang's avatar Jjgod Jiang

Fix double mouse motion in OS X

Simply ignore the event handler for Windowed mode in fullscreen.
parent 6456acb4
...@@ -232,6 +232,9 @@ static __inline__ void ConvertNSRect(NSRect *r) ...@@ -232,6 +232,9 @@ static __inline__ void ConvertNSRect(NSRect *r)
SDL_Window *window = _data->window; SDL_Window *window = _data->window;
NSPoint point; NSPoint point;
if (window->flags & SDL_WINDOW_FULLSCREEN)
return;
point = [theEvent locationInWindow]; point = [theEvent locationInWindow];
point.y = window->h - point.y; point.y = window->h - point.y;
if ( point.x < 0 || point.x >= window->w || if ( point.x < 0 || point.x >= window->w ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment