diff options
author | Juuxel <6596629+Juuxel@users.noreply.github.com> | 2020-11-28 13:27:08 +0200 |
---|---|---|
committer | Juuxel <6596629+Juuxel@users.noreply.github.com> | 2020-11-28 13:27:08 +0200 |
commit | b9265894f3dddc0e7df8c420c867e82078e78f99 (patch) | |
tree | 7a371923b527b2566edb0726754dee2b13132bad /GuiTest | |
parent | 850a94c6ba322b445a536a29fb78cf047cfb8275 (diff) | |
download | LibGui-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.java | 2 | ||||
-rw-r--r-- | GuiTest/src/main/java/io/github/cottonmc/test/client/WHudTest.java | 2 |
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 |