aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io
diff options
context:
space:
mode:
authorJuuxel <6596629+Juuxel@users.noreply.github.com>2020-12-21 20:45:07 +0200
committerJuuxel <6596629+Juuxel@users.noreply.github.com>2020-12-21 20:45:07 +0200
commit110a4db9f8c0530b8778e7290962b453e03b0bc1 (patch)
tree1fbb8523d82adbd078b750c1cd348fe9898aa13a /src/main/java/io
parent1a5d29ec80508226df942746e6629d1f276c57be (diff)
downloadLibGui-110a4db9f8c0530b8778e7290962b453e03b0bc1.tar.gz
LibGui-110a4db9f8c0530b8778e7290962b453e03b0bc1.tar.bz2
LibGui-110a4db9f8c0530b8778e7290962b453e03b0bc1.zip
Fix large slot focus border position
Diffstat (limited to 'src/main/java/io')
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/client/BackgroundPainter.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/client/BackgroundPainter.java b/src/main/java/io/github/cottonmc/cotton/gui/client/BackgroundPainter.java
index 4789271..f00bf80 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/client/BackgroundPainter.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/client/BackgroundPainter.java
@@ -56,8 +56,8 @@ public interface BackgroundPainter {
ScreenDrawing.drawBeveledPanel((x * 18) + left - 4, (y * 18) + top - 4, 26, 26,
lo, bg, hi);
if (slot.getFocusedSlot() == index) {
- int sx = (x * 18) + left - 3;
- int sy = (y * 18) + top - 3;
+ int sx = (x * 18) + left - 4;
+ int sy = (y * 18) + top - 4;
ScreenDrawing.coloredRect(sx, sy, 26, 1, 0xFF_FFFFA0);
ScreenDrawing.coloredRect(sx, sy + 1, 1, 26 - 1, 0xFF_FFFFA0);
ScreenDrawing.coloredRect(sx + 26 - 1, sy + 1, 1, 26 - 1, 0xFF_FFFFA0);