From d31128fc11fc9b362ed24d655ce21a6c4f33b833 Mon Sep 17 00:00:00 2001 From: CrushedPixel Date: Fri, 21 Aug 2015 17:06:14 +0200 Subject: [PATCH] Fix GuiReplayOverlay not resizing upon Gui Scale change (did it for you, Johni) --- .../eu/crushedpixel/replaymod/gui/overlay/GuiReplayOverlay.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/crushedpixel/replaymod/gui/overlay/GuiReplayOverlay.java b/src/main/java/eu/crushedpixel/replaymod/gui/overlay/GuiReplayOverlay.java index 5dd79905..a1dc1386 100755 --- a/src/main/java/eu/crushedpixel/replaymod/gui/overlay/GuiReplayOverlay.java +++ b/src/main/java/eu/crushedpixel/replaymod/gui/overlay/GuiReplayOverlay.java @@ -398,7 +398,7 @@ public class GuiReplayOverlay extends Gui { } private void checkResize() { - if (displayWidth != mc.displayWidth || displayHeight != mc.displayHeight) { + if (!screenDimensions.equals(MouseUtils.getScaledDimensions())) { GuiReplayOverlay other = new GuiReplayOverlay(); other.timelineReal.zoom = this.timelineReal.zoom; other.timelineReal.timeStart = this.timelineReal.timeStart;