Fix usage of getViewportHeight/getViewportWidth now they are correct
They were swapped in 580335c9cdc4c5b6faafd969d557ef5f1d4187e8
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user