From f5e2667e1ee0f8e663ae32f34f76e1a2bc0b6ada Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Fri, 15 Sep 2023 09:55:26 +0200 Subject: Feature: gui scaling (#464) Add gui scaling #464 --- src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt') diff --git a/src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt b/src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt index be373f62f..16b41f6e6 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt @@ -95,7 +95,7 @@ class GuiEditManager { return Vector2i(5, 5) } else { val (x, y) = currentBorderSize[internalName] ?: return Vector2i(1, 1) - return Vector2i(x, y) + return Vector2i((x * effectiveScale).toInt(), (y * effectiveScale).toInt()) } } -- cgit