Fixed compile error on some versions of Mac OS X.

This commit is contained in:
Sam Lantinga 2011-02-23 15:06:14 -08:00
parent d79f7ed02d
commit 2f682c9d08

View file

@ -111,8 +111,8 @@ Cocoa_WarpMouse(SDL_Window * window, int x, int y)
{
CGPoint point;
point.x = (CGFloat)window->x + x;
point.y = (CGFloat)window->y + y;
point.x = (float)window->x + x;
point.y = (float)window->y + y;
CGWarpMouseCursorPosition(point);
}