From 9738aeff182f73f363402defda68c7803020475c Mon Sep 17 00:00:00 2001 From: Mike Gorchak Date: Tue, 28 Apr 2009 04:43:21 +0000 Subject: [PATCH] New last cursor position must rely on the clamped coordinates. --- src/events/SDL_mouse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/events/SDL_mouse.c b/src/events/SDL_mouse.c index f1a862549..182bb4e5e 100644 --- a/src/events/SDL_mouse.c +++ b/src/events/SDL_mouse.c @@ -473,8 +473,8 @@ SDL_SendMouseMotion(int id, int relative, int x, int y, int pressure) 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; }