fpsindicator: fix overlay disappearing when using stretched fixed mode

This commit is contained in:
Lotto
2018-05-19 18:21:10 +02:00
parent 3c34b5f338
commit 215f46e483

View File

@@ -111,7 +111,7 @@ public class FpsOverlay extends Overlay
final int fps = client.getFPS();
if (fps < FPS_SIZE)
{
final int width = client.getCanvas().getWidth();
final int width = (int) client.getRealDimensions().getWidth();
final Point point = new Point(width - VALUE_X_OFFSET - graphics.getFontMetrics().stringWidth(FPS_STRING), Y_OFFSET);
OverlayUtil.renderTextLocation(graphics, point, fpsNums[fps] + FPS_STRING, getFpsValueColor());
}