Mercurial > sdl-ios-xcode
changeset 3112:8f3fd508734b
New last cursor position must rely on the clamped coordinates.
author | Mike Gorchak <lestat@i.com.ua> |
---|---|
date | Tue, 28 Apr 2009 04:43:21 +0000 |
parents | 14d32495a502 |
children | df2bb5735822 |
files | src/events/SDL_mouse.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/events/SDL_mouse.c Tue Apr 28 04:41:25 2009 +0000 +++ b/src/events/SDL_mouse.c Tue Apr 28 04:43:21 2009 +0000 @@ -473,8 +473,8 @@ event.motion.cursor = mouse->current_end; posted = (SDL_PushEvent(&event) > 0); } - mouse->last_x = x; - mouse->last_y = y; + mouse->last_x = mouse->x; + mouse->last_y = mouse->y; return posted; }