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

@@ -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;