Fix looking up on Mac using SDL 2.0.6 framework

This commit is contained in:
aurhat
2018-02-10 11:28:50 +01:00
parent a06c939405
commit a720a98faa
-3
View File
@@ -755,9 +755,6 @@ static inline bool skipmousemotion(SDL_Event &event)
if(event.type != SDL_MOUSEMOTION) return true;
if(!(SDL_GetWindowFlags(screen) & SDL_WINDOW_FULLSCREEN))
{
#ifdef __APPLE__
if(event.motion.y == 0) return true; // let mac users drag windows via the title bar
#endif
if(event.motion.x == screenw / 2 && event.motion.y == screenh / 2) return true; // ignore any motion events generated SDL_WarpMouse
}
return false;