Make clearFill rect fill ful height (#205)

This commit is contained in:
Archez
2024-05-22 09:05:01 -05:00
committed by Garrett Cox
parent 25864d1a92
commit edf4fdba8f
+2 -1
View File
@@ -1513,8 +1513,9 @@ void func_8012CF0C(GraphicsContext* gfxCtx, s32 clearFb, s32 clearZb, u8 r, u8 g
// #region 2S2H [Cosmetic] Account for different aspect ratios than 4:3
// WideRectangle consumes two instructions and requires ++ for the macro to work
// Remove `- 1` on the sizes so the rectangle fills the whole screen like `fillRect`
Gfx* tmpGfx = masterGfx;
gDPFillWideRectangle(tmpGfx++, OTRGetRectDimensionFromLeftEdge(0), 0, OTRGetRectDimensionFromRightEdge(gCfbWidth), gCfbHeight - 1);
gDPFillWideRectangle(tmpGfx++, OTRGetRectDimensionFromLeftEdge(0), 0, OTRGetRectDimensionFromRightEdge(gCfbWidth), gCfbHeight);
gDPPipeSync(&masterGfx[2]);
gSPEndDisplayList(&masterGfx[3]);
// #endregion