From d4b770b2c10afe2c8b9ace024614b5477eefe016 Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Mon, 2 Jul 2018 19:24:18 +0700 Subject: [PATCH] Correct texrect dsdx calculation in COPY mode. Partially fixes issue with the energy bar in F-Zero multiplayer, #1849 --- src/gDP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gDP.cpp b/src/gDP.cpp index 339f8713..739ba199 100644 --- a/src/gDP.cpp +++ b/src/gDP.cpp @@ -791,7 +791,7 @@ void gDPSetKeyGB(u32 cG, u32 sG, u32 wG, u32 cB, u32 sB, u32 wB ) void gDPTextureRectangle(f32 ulx, f32 uly, f32 lrx, f32 lry, s32 tile, s16 s, s16 t, f32 dsdx, f32 dtdy , bool flip) { if (gDP.otherMode.cycleType == G_CYC_COPY) { - dsdx = 1.0f; + dsdx /= 4.0f; lrx += 1.0f; lry += 1.0f; }