aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-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());
}
}