aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThexXTURBOXx <nico.mexis@kabelmail.de>2022-09-09 12:51:20 +0200
committerLorenz <lo.scherf@gmail.com>2022-09-09 12:51:20 +0200
commit708dcb1a961e93422f394527b5f6519140320b6a (patch)
tree8e903849a8a8c64c91f6b77aba1026be79c42fc0 /src
parentbd35a713caac99069e795ea189b0f0e1f6000bff (diff)
downloadNotEnoughUpdates-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.java11
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();