From 2ede05b8b075dc661f579298596f0eb531a9d703 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Wed, 25 Jan 2023 16:48:36 +0900 Subject: - lol scalez Signed-off-by: syeyoung --- .../java/kr/syeyoung/dungeonsguide/mod/overlay/AbsPosPositioner.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/src/main/java/kr/syeyoung/dungeonsguide') 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()); } } -- cgit