src/events/SDL_mouse.c
changeset 9807 57b448735f48
parent 9619 b94b6d0bff0f
child 9998 f67cf37e9cd4
     1.1 --- a/src/events/SDL_mouse.c	Thu Jul 16 21:48:35 2015 +0200
     1.2 +++ b/src/events/SDL_mouse.c	Fri Jul 17 21:03:58 2015 -0400
     1.3 @@ -535,14 +535,16 @@
     1.4      }
     1.5  }
     1.6  
     1.7 -void
     1.8 +int
     1.9  SDL_WarpMouseGlobal(int x, int y)
    1.10  {
    1.11      SDL_Mouse *mouse = SDL_GetMouse();
    1.12  
    1.13      if (mouse->WarpMouseGlobal) {
    1.14 -        mouse->WarpMouseGlobal(x, y);
    1.15 +        return mouse->WarpMouseGlobal(x, y);
    1.16      }
    1.17 +
    1.18 +    return SDL_Unsupported();
    1.19  }
    1.20  
    1.21  static SDL_bool