From dcf7f8f5720688e0e8cb6c7417c3736fa50f3510 Mon Sep 17 00:00:00 2001 From: Sonic Dreamcaster Date: Tue, 31 Dec 2024 18:37:39 -0300 Subject: [PATCH] fix texture displacement in Lib_TextureRect_RGBA16_MirX --- src/engine/fox_std_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/fox_std_lib.c b/src/engine/fox_std_lib.c index df06c881..506d7bf9 100644 --- a/src/engine/fox_std_lib.c +++ b/src/engine/fox_std_lib.c @@ -647,7 +647,7 @@ void Lib_TextureRect_RGBA16_MirX(Gfx** gfxPtr, u16* texture, u32 width, u32 heig gSPWideTextureRectangle((*gfxPtr)++, (s32) (xPos * 4.0f), (s32) (yPos * 4.0f), (s32) ((xPos + width * xScale) * 4.0f), (s32) ((yPos + height * yScale) * 4.0f), - G_TX_RENDERTILE, (width - 1) * 32, 0, (u16) (s32) (-1.0f / xScale * 1024.0f), + G_TX_RENDERTILE, (width /* - 1*/) * 32, 0, (u16) (s32) (-1.0f / xScale * 1024.0f), (s32) (1.0f / yScale * 1024.0f)); }