(svn r18031) -Codechange: since basically r7157 adding up 'all' mouse movement isn't needed anymore because after each even that movement is handled and the counter is reset. As such simply assigning instead of adding works.

This commit is contained in:
rubidium
2009-11-09 16:07:03 +00:00
parent cbf4b80b86
commit 88a7e23897
3 changed files with 8 additions and 8 deletions

View File

@@ -379,8 +379,8 @@ static void PollEvent()
int dy = mouse_y - _cursor.pos.y;
if (dx != 0 || dy != 0) {
if (_cursor.fix_at) {
_cursor.delta.x += dx;
_cursor.delta.y += dy;
_cursor.delta.x = dx;
_cursor.delta.y = dy;
position_mouse(_cursor.pos.x, _cursor.pos.y);
} else {
_cursor.delta.x = dx;