New last cursor position must rely on the clamped coordinates.
authorMike Gorchak
Tue, 28 Apr 2009 04:43:21 +0000
changeset 31128f3fd508734b
parent 3111 14d32495a502
child 3113 df2bb5735822
New last cursor position must rely on the clamped coordinates.
src/events/SDL_mouse.c
     1.1 --- a/src/events/SDL_mouse.c	Tue Apr 28 04:41:25 2009 +0000
     1.2 +++ b/src/events/SDL_mouse.c	Tue Apr 28 04:43:21 2009 +0000
     1.3 @@ -473,8 +473,8 @@
     1.4          event.motion.cursor = mouse->current_end;
     1.5          posted = (SDL_PushEvent(&event) > 0);
     1.6      }
     1.7 -    mouse->last_x = x;
     1.8 -    mouse->last_y = y;
     1.9 +    mouse->last_x = mouse->x;
    1.10 +    mouse->last_y = mouse->y;
    1.11      return posted;
    1.12  }
    1.13