Don't show mirror mouse trail from 0,0 when toggling mirror

This commit is contained in:
yugecin 2016-10-01 14:54:05 +02:00
parent c58cf824a3
commit 38d5c64a26

View File

@ -171,7 +171,7 @@ public class Cursor {
float FPSmod = Math.max(container.getFPS(), 1) / 30f;
if (newStyle) {
// new style: add all points between cursor movements
if (!addCursorPoints(lastPosition.x, lastPosition.y, mouseX, mouseY)) {
if ((lastPosition.x == 0 && lastPosition.y == 0) || !addCursorPoints(lastPosition.x, lastPosition.y, mouseX, mouseY)) {
trail.add(new Point(mouseX, mouseY));
}
lastPosition.move(mouseX, mouseY);