From edf4fdba8fef770af3e71ae662665a8a8dcc8adf Mon Sep 17 00:00:00 2001 From: Archez Date: Mon, 15 Apr 2024 23:25:30 -0400 Subject: [PATCH] Make clearFill rect fill ful height (#205) --- mm/src/code/z_rcp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/src/code/z_rcp.c b/mm/src/code/z_rcp.c index 57aa5fbef..9865abc90 100644 --- a/mm/src/code/z_rcp.c +++ b/mm/src/code/z_rcp.c @@ -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