aboutsummaryrefslogtreecommitdiff
path: root/mod/src
diff options
context:
space:
mode:
authorsyeyoung <cyoung06@naver.com>2023-01-25 16:48:36 +0900
committersyeyoung <cyoung06@naver.com>2023-01-25 16:48:36 +0900
commit2ede05b8b075dc661f579298596f0eb531a9d703 (patch)
treefac3f4462eda56fbfa209f5a0ca6f2380eecb099 /mod/src
parent5f9f7345b6ef81e8f1b3ac0018497dbcc3f2937f (diff)
downloadSkyblock-Dungeons-Guide-2ede05b8b075dc661f579298596f0eb531a9d703.tar.gz
Skyblock-Dungeons-Guide-2ede05b8b075dc661f579298596f0eb531a9d703.tar.bz2
Skyblock-Dungeons-Guide-2ede05b8b075dc661f579298596f0eb531a9d703.zip
- lol scalez
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'mod/src')
-rw-r--r--mod/src/main/java/kr/syeyoung/dungeonsguide/mod/overlay/AbsPosPositioner.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/overlay/AbsPosPositioner.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/overlay/AbsPosPositioner.java
index e82488be..921a6e7c 100644
--- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/overlay/AbsPosPositioner.java
+++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/overlay/AbsPosPositioner.java
@@ -36,7 +36,7 @@ public class AbsPosPositioner implements Positioner {
double xScale = Minecraft.getMinecraft().displayWidth/screenWidth;
double yScale = Minecraft.getMinecraft().displayHeight /screenHeight;
Size size = domElement.getLayouter().layout(domElement,
- new ConstraintBox(0, screenWidth-x, 0, screenHeight - y));
+ new ConstraintBox(0, screenWidth-x /xScale, 0, screenHeight - y/yScale));
return new Rect(x / xScale, y/ yScale, size.getWidth(), size.getHeight());
}
}