aboutsummaryrefslogtreecommitdiff
path: root/GuiTest
diff options
context:
space:
mode:
authorJuuxel <6596629+Juuxel@users.noreply.github.com>2020-11-28 13:27:08 +0200
committerJuuxel <6596629+Juuxel@users.noreply.github.com>2020-11-28 13:27:08 +0200
commitb9265894f3dddc0e7df8c420c867e82078e78f99 (patch)
tree7a371923b527b2566edb0726754dee2b13132bad /GuiTest
parent850a94c6ba322b445a536a29fb78cf047cfb8275 (diff)
downloadLibGui-b9265894f3dddc0e7df8c420c867e82078e78f99.tar.gz
LibGui-b9265894f3dddc0e7df8c420c867e82078e78f99.tar.bz2
LibGui-b9265894f3dddc0e7df8c420c867e82078e78f99.zip
Migrate all rectangle rendering to use MatrixStacks
Still need testing.
Diffstat (limited to 'GuiTest')
-rw-r--r--GuiTest/src/main/java/io/github/cottonmc/test/client/TestClientGui.java2
-rw-r--r--GuiTest/src/main/java/io/github/cottonmc/test/client/WHudTest.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/GuiTest/src/main/java/io/github/cottonmc/test/client/TestClientGui.java b/GuiTest/src/main/java/io/github/cottonmc/test/client/TestClientGui.java
index 52b0e81..de8a06a 100644
--- a/GuiTest/src/main/java/io/github/cottonmc/test/client/TestClientGui.java
+++ b/GuiTest/src/main/java/io/github/cottonmc/test/client/TestClientGui.java
@@ -144,7 +144,7 @@ public class TestClientGui extends LightweightGuiDescription {
@Override
public void paint(MatrixStack matrices, int x, int y, int mouseX, int mouseY) {
- ScreenDrawing.coloredRect(x, y, this.getWidth(), this.getHeight(), color);
+ ScreenDrawing.coloredRect(matrices, x, y, this.getWidth(), this.getHeight(), color);
}
}
}
diff --git a/GuiTest/src/main/java/io/github/cottonmc/test/client/WHudTest.java b/GuiTest/src/main/java/io/github/cottonmc/test/client/WHudTest.java
index 2cc1e4b..41d566d 100644
--- a/GuiTest/src/main/java/io/github/cottonmc/test/client/WHudTest.java
+++ b/GuiTest/src/main/java/io/github/cottonmc/test/client/WHudTest.java
@@ -16,7 +16,7 @@ public class WHudTest extends WWidget {
@Override
public void paint(MatrixStack matrices, int x, int y, int mouseX, int mouseY) {
- ScreenDrawing.coloredRect(x, y, width, height, 0xFF_00FF00);
+ ScreenDrawing.coloredRect(matrices, x, y, width, height, 0xFF_00FF00);
}
@Override