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 0ac98043e8
commit c2cea8ef59

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);
}