From e5a683add7ba8c95347e8163be501514da8aa246 Mon Sep 17 00:00:00 2001 From: Adam Bird Date: Thu, 4 Apr 2024 12:17:25 -0400 Subject: [PATCH] update comment --- soh/src/code/z_room.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/soh/src/code/z_room.c b/soh/src/code/z_room.c index ef8ef0b0c..de068ae6c 100644 --- a/soh/src/code/z_room.c +++ b/soh/src/code/z_room.c @@ -301,8 +301,8 @@ void Room_DrawBackground2D(Gfx** gfxP, void* tex, void* tlut, u16 width, u16 hei bg->b.frameH = height * (1 << 2); guS2DInitBg(bg); - // #region 2S2H [Widescreen] Account for different aspect ratios than 4:3 - // When larger we want to render an additional black rectangle behind the 2d image + // #region SOH [Port][Widescreen] + // When larger than 4:3 we want to render an additional black rectangle behind the 2d image // to simulate black bars on the side that cover up the world s16 newX = OTRGetRectDimensionFromLeftEdge(0); if (newX < 0) { @@ -311,6 +311,7 @@ void Room_DrawBackground2D(Gfx** gfxP, void* tex, void* tlut, u16 width, u16 hei gDPSetFillColor(gfx++, GPACK_RGBA5551(0, 0, 0, 1) << 16 | GPACK_RGBA5551(0, 0, 0, 1)); gDPFillWideRectangle(gfx++, newX, 0, OTRGetRectDimensionFromRightEdge(SCREEN_WIDTH), SCREEN_HEIGHT); } + // #endregion gDPSetOtherMode(gfx++, tlutMode | G_TL_TILE | G_TD_CLAMP | G_TP_NONE | G_CYC_COPY | G_PM_NPRIMITIVE, G_AC_THRESHOLD | G_ZS_PIXEL | G_RM_NOOP | G_RM_NOOP2);