(svn r18030) -Fix: screen jumped a bit for at least SDL and Allegro when right-click-dragging

This commit is contained in:
rubidium
2009-11-09 16:05:24 +00:00
parent 2e499a43a9
commit b3394dbeb4
3 changed files with 6 additions and 4 deletions

View File

@@ -2197,7 +2197,7 @@ static void HandleKeyScrolling()
}
}
void MouseLoop(MouseClick click, int mousewheel)
static void MouseLoop(MouseClick click, int mousewheel)
{
DecreaseWindowCounters();
HandlePlacePresize();
@@ -2340,6 +2340,11 @@ void HandleMouseEvents()
}
MouseLoop(click, mousewheel);
/* We have moved the mouse the required distance,
* no need to move it at any later time. */
_cursor.delta.x = 0;
_cursor.delta.y = 0;
}
/**