diff options
author | syeyoung <cyoung06@naver.com> | 2023-01-25 16:48:36 +0900 |
---|---|---|
committer | syeyoung <cyoung06@naver.com> | 2023-01-25 16:48:36 +0900 |
commit | 2ede05b8b075dc661f579298596f0eb531a9d703 (patch) | |
tree | fac3f4462eda56fbfa209f5a0ca6f2380eecb099 /mod/src/main/java | |
parent | 5f9f7345b6ef81e8f1b3ac0018497dbcc3f2937f (diff) | |
download | Skyblock-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/main/java')
-rw-r--r-- | mod/src/main/java/kr/syeyoung/dungeonsguide/mod/overlay/AbsPosPositioner.java | 2 |
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()); } } |