src/events/SDL_mouse.c
changeset 8976 1a5d959d7b32
parent 8965 8eceea447276
child 8983 21f5923cfd15
equal deleted inserted replaced
8975:180271d72b1e 8976:1a5d959d7b32
   202 {
   202 {
   203     SDL_Mouse *mouse = SDL_GetMouse();
   203     SDL_Mouse *mouse = SDL_GetMouse();
   204     int posted;
   204     int posted;
   205     int xrel;
   205     int xrel;
   206     int yrel;
   206     int yrel;
   207     int x_max = 0, y_max = 0;
       
   208 
   207 
   209     if (mouse->relative_mode_warp) {
   208     if (mouse->relative_mode_warp) {
   210         int center_x = 0, center_y = 0;
   209         int center_x = 0, center_y = 0;
   211         SDL_GetWindowSize(window, &center_x, &center_y);
   210         SDL_GetWindowSize(window, &center_x, &center_y);
   212         center_x /= 2;
   211         center_x /= 2;