Fix usage of getViewportHeight/getViewportWidth now they are correct

They were swapped in 580335c9cdc4c5b6faafd969d557ef5f1d4187e8
This commit is contained in:
Adam
2018-01-24 20:46:22 -05:00
parent f1e4bae31a
commit cedb7041c8
2 changed files with 3 additions and 3 deletions

View File

@@ -103,8 +103,8 @@ public class Perspective
if (y >= 50)
{
int pointX = client.getViewportHeight() / 2 + x * client.getScale() / y;
int pointY = var8 * client.getScale() / y + client.getViewportWidth() / 2;
int pointX = client.getViewportWidth() / 2 + x * client.getScale() / y;
int pointY = client.getViewportHeight() / 2 + var8 * client.getScale() / y;
return new Point(pointX, pointY);
}
}

View File

@@ -92,7 +92,7 @@ public class XpGlobesOverlay extends Overlay
}
//check the width of the client if we can draw properly
int clientWidth = client.isResized() ? client.getCanvas().getWidth() : client.getViewportHeight();
int clientWidth = client.isResized() ? client.getCanvas().getWidth() : client.getViewportWidth();
if (clientWidth <= 0)
{
return null;