Skip to content

Commit 466eff5

Browse files
ekulxamMacalodon
andauthored
Fix blit parameter order (FabricMC#482)
Co-authored-by: Macalodon <166933783+macalodon@users.noreply.github.com>
1 parent aeef0d9 commit 466eff5

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

reference/1.21.10/src/client/java/com/example/docs/rendering/DrawContextExampleScreen.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ public void render(GuiGraphics context, int mouseX, int mouseY, float delta) {
6666
// :::6
6767
ResourceLocation texture2 = ResourceLocation.fromNamespaceAndPath(ExampleMod.MOD_ID, "textures/gui/test-uv-drawing.png");
6868
int u = 10, v = 13, regionWidth = 14, regionHeight = 14;
69-
// renderLayer, texture, x, y, width, height, u, v, regionWidth, regionHeight, textureWidth, textureHeight
70-
context.blit(RenderPipelines.GUI_TEXTURED, texture2, 90, 190, 14, 14, u, v, regionWidth, regionHeight, 256, 256);
69+
// renderLayer, texture, x, y, u, v, width, height, regionWidth, regionHeight, textureWidth, textureHeight
70+
context.blit(RenderPipelines.GUI_TEXTURED, texture2, 90, 190, u, v, 14, 14, regionWidth, regionHeight, 256, 256);
7171
// :::6
7272

7373
// :::7

reference/1.21.4/src/client/java/com/example/docs/rendering/DrawContextExampleScreen.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ public void render(DrawContext context, int mouseX, int mouseY, float delta) {
6464
// :::6
6565
Identifier texture2 = Identifier.of("fabric-docs-reference", "textures/gui/test-uv-drawing.png");
6666
int u = 10, v = 13, regionWidth = 14, regionHeight = 14;
67-
// renderLayer, texture, x, y, width, height, u, v, regionWidth, regionHeight, textureWidth, textureHeight
68-
context.drawTexture(RenderLayer::getGuiTextured, texture2, 90, 190, 14, 14, u, v, regionWidth, regionHeight, 256, 256);
67+
// renderLayer, texture, x, y, u, v, width, height, regionWidth, regionHeight, textureWidth, textureHeight
68+
context.drawTexture(RenderLayer::getGuiTextured, texture2, 90, 190, u, v, 14, 14, regionWidth, regionHeight, 256, 256);
6969
// :::6
7070

7171
// :::7

reference/1.21.8/src/client/java/com/example/docs/rendering/DrawContextExampleScreen.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ public void render(DrawContext context, int mouseX, int mouseY, float delta) {
6464
// :::6
6565
Identifier texture2 = Identifier.of("fabric-docs-reference", "textures/gui/test-uv-drawing.png");
6666
int u = 10, v = 13, regionWidth = 14, regionHeight = 14;
67-
// renderLayer, texture, x, y, width, height, u, v, regionWidth, regionHeight, textureWidth, textureHeight
68-
context.drawTexture(RenderPipelines.GUI_TEXTURED, texture2, 90, 190, 14, 14, u, v, regionWidth, regionHeight, 256, 256);
67+
// renderLayer, texture, x, y, u, v, width, height, regionWidth, regionHeight, textureWidth, textureHeight
68+
context.drawTexture(RenderPipelines.GUI_TEXTURED, texture2, 90, 190, u, v, 14, 14, regionWidth, regionHeight, 256, 256);
6969
// :::6
7070

7171
// :::7

reference/latest/src/client/java/com/example/docs/rendering/DrawContextExampleScreen.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ public void render(GuiGraphics graphics, int mouseX, int mouseY, float delta) {
6666
// :::6
6767
Identifier texture2 = Identifier.fromNamespaceAndPath(ExampleMod.MOD_ID, "textures/gui/test-uv-drawing.png");
6868
int u = 10, v = 13, regionWidth = 14, regionHeight = 14;
69-
// renderLayer, texture, x, y, width, height, u, v, regionWidth, regionHeight, textureWidth, textureHeight
70-
graphics.blit(RenderPipelines.GUI_TEXTURED, texture2, 90, 190, 14, 14, u, v, regionWidth, regionHeight, 256, 256);
69+
// renderLayer, texture, x, y, u, v, width, height, regionWidth, regionHeight, textureWidth, textureHeight
70+
graphics.blit(RenderPipelines.GUI_TEXTURED, texture2, 90, 190, u, v, 14, 14, regionWidth, regionHeight, 256, 256);
7171
// :::6
7272

7373
// :::7

0 commit comments

Comments
 (0)