src/video/cocoa/SDL_cocoamouse.m
changeset 7465 1bcf7aac5623
parent 7464 7cdeb64faa72
child 7593 20298a0d8631
equal deleted inserted replaced
7464:7cdeb64faa72 7465:1bcf7aac5623
   199 
   199 
   200 static void
   200 static void
   201 Cocoa_WarpMouse(SDL_Window * window, int x, int y)
   201 Cocoa_WarpMouse(SDL_Window * window, int x, int y)
   202 {
   202 {
   203     SDL_Mouse *mouse = SDL_GetMouse();
   203     SDL_Mouse *mouse = SDL_GetMouse();
   204     CGPoint point = CGMakePoint(x, y);
   204     CGPoint point = CGPointMake(x, y);
   205 
   205 
   206     if (!(window->flags & SDL_WINDOW_FULLSCREEN))
   206     if (!(window->flags & SDL_WINDOW_FULLSCREEN))
   207     {
   207     {
   208         point.x += window->x;
   208         point.x += window->x;
   209         point.y += window->y;
   209         point.y += window->y;