Fix usage of getViewportHeight/getViewportWidth now they are correct
They were swapped in 580335c9cdc4c5b6faafd969d557ef5f1d4187e8
This commit is contained in:
@@ -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