diff options
author | ThexXTURBOXx <nico.mexis@kabelmail.de> | 2022-09-09 12:51:20 +0200 |
---|---|---|
committer | Lorenz <lo.scherf@gmail.com> | 2022-09-09 12:51:20 +0200 |
commit | 708dcb1a961e93422f394527b5f6519140320b6a (patch) | |
tree | 8e903849a8a8c64c91f6b77aba1026be79c42fc0 /src | |
parent | bd35a713caac99069e795ea189b0f0e1f6000bff (diff) | |
download | NotEnoughUpdates-708dcb1a961e93422f394527b5f6519140320b6a.tar.gz NotEnoughUpdates-708dcb1a961e93422f394527b5f6519140320b6a.tar.bz2 NotEnoughUpdates-708dcb1a961e93422f394527b5f6519140320b6a.zip |
fixed tooltips scaling with gui scale properly
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/render/MinionHelperOverlayHover.java | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/render/MinionHelperOverlayHover.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/render/MinionHelperOverlayHover.java index 903c82a9..6b6ea6dc 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/render/MinionHelperOverlayHover.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/render/MinionHelperOverlayHover.java @@ -69,15 +69,8 @@ public class MinionHelperOverlayHover { OverviewLine mouseObject = overlay.getObjectOverMouse(renderMap); if (mouseObject != null) { - GlStateManager.pushMatrix(); - GlStateManager.scale(2f / scaledresolution.getScaleFactor(), 2f / scaledresolution.getScaleFactor(), 1); - Utils.drawHoveringText(getTooltip(mouseObject), - mouseX * scaledresolution.getScaleFactor() / 2, - mouseY * scaledresolution.getScaleFactor() / 2, - scaledWidth * scaledresolution.getScaleFactor() / 2, - scaledHeight * scaledresolution.getScaleFactor() / 2, -1, Minecraft.getMinecraft().fontRendererObj - ); - GlStateManager.popMatrix(); + Utils.drawHoveringText(getTooltip(mouseObject), mouseX, mouseY, + scaledWidth, scaledHeight, -1, Minecraft.getMinecraft().fontRendererObj); } renderToggleButton(); |