New last cursor position must rely on the clamped coordinates.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403592
This commit is contained in:
Mike Gorchak 2009-04-28 04:43:21 +00:00
parent d01b767241
commit 820895189c

View file

@ -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;
}