diff options
author | Linnea Gräf <nea@nea.moe> | 2023-09-15 09:55:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-15 09:55:26 +0200 |
commit | f5e2667e1ee0f8e663ae32f34f76e1a2bc0b6ada (patch) | |
tree | 6fb997272eab7c9d7e026bc865e873afdec4341e /src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt | |
parent | 54a5b0c591470cf0ee247977ecef7cbdcddc5172 (diff) | |
download | skyhanni-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.kt | 2 |
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()) } } |