1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Correct texrect dsdx calculation in COPY mode.

Partially fixes issue with the energy bar in F-Zero multiplayer, #1849
This commit is contained in:
Sergey Lipskiy 2018-07-02 19:24:18 +07:00
parent 9fb63e0460
commit d4b770b2c1

View File

@ -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;
}