From 820895189cec8902d8f49534e4a5bdde72d441b9 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. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403592 --- 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; }