summaryrefslogtreecommitdiff
path: root/mm/src/code
diff options
context:
space:
mode:
authorArchez <Archez@users.noreply.github.com>2024-04-15 23:25:30 -0400
committerGarrett Cox <garrettjcox@gmail.com>2024-05-22 09:05:01 -0500
commitedf4fdba8fef770af3e71ae662665a8a8dcc8adf (patch)
tree8ffc3fa05798124395adfebe9e9d5a5165333cb4 /mm/src/code
parent25864d1a92793df0bb98bd921968d296eacb531b (diff)
Make clearFill rect fill ful height (#205)
Diffstat (limited to 'mm/src/code')
-rw-r--r--mm/src/code/z_rcp.c3
1 files changed, 2 insertions, 1 deletions
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