Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
New last cursor position must rely on the clamped coordinates.
Browse files Browse the repository at this point in the history
  • Loading branch information
llmike committed Apr 28, 2009
1 parent e5cea6f commit 9738aef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/events/SDL_mouse.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9738aef

Please sign in to comment.