Fix localToCanvas calculation on fixed screen

This commit is contained in:
WooxSolo
2018-11-01 15:02:15 +01:00
committed by Tomas Slusny
parent 1983abd5c4
commit 809b5b2718

View File

@@ -139,7 +139,9 @@ public class Perspective
{
int pointX = client.getViewportWidth() / 2 + x * client.getScale() / y;
int pointY = client.getViewportHeight() / 2 + var8 * client.getScale() / y;
return new Point(pointX, pointY);
return new Point(
pointX + client.getViewportXOffset(),
pointY + client.getViewportYOffset());
}
}