mirror of
https://github.com/izzy2lost/2ship2harkinian-Android.git
synced 2026-06-19 01:20:08 -07:00
Make clearFill rect fill ful height (#205)
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user