aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2023-09-15 09:55:26 +0200
committerGitHub <noreply@github.com>2023-09-15 09:55:26 +0200
commitf5e2667e1ee0f8e663ae32f34f76e1a2bc0b6ada (patch)
tree6fb997272eab7c9d7e026bc865e873afdec4341e /src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt
parent54a5b0c591470cf0ee247977ecef7cbdcddc5172 (diff)
downloadskyhanni-f5e2667e1ee0f8e663ae32f34f76e1a2bc0b6ada.tar.gz
skyhanni-f5e2667e1ee0f8e663ae32f34f76e1a2bc0b6ada.tar.bz2
skyhanni-f5e2667e1ee0f8e663ae32f34f76e1a2bc0b6ada.zip
Feature: gui scaling (#464)
Add gui scaling #464
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt2
1 files changed, 1 insertions, 1 deletions
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())
}
}