src/video/cocoa/SDL_cocoamouse.m
changeset 7792 b8d4be87970a
parent 7593 20298a0d8631
child 8093 b43765095a6f
     1.1 --- a/src/video/cocoa/SDL_cocoamouse.m	Sun Oct 06 20:39:23 2013 -0700
     1.2 +++ b/src/video/cocoa/SDL_cocoamouse.m	Mon Oct 07 14:16:38 2013 -0700
     1.3 @@ -204,13 +204,7 @@
     1.4  Cocoa_WarpMouse(SDL_Window * window, int x, int y)
     1.5  {
     1.6      SDL_Mouse *mouse = SDL_GetMouse();
     1.7 -    CGPoint point = CGPointMake(x, y);
     1.8 -
     1.9 -    if (!(window->flags & SDL_WINDOW_FULLSCREEN))
    1.10 -    {
    1.11 -        point.x += window->x;
    1.12 -        point.y += window->y;
    1.13 -    }
    1.14 +    CGPoint point = CGPointMake(x + (float)window->x, y + (float)window->y);
    1.15  
    1.16      {
    1.17          /* This makes Cocoa_HandleMouseEvent ignore this delta in the next