update comment
This commit is contained in:
parent
bd8b16e331
commit
e5a683add7
|
@ -301,8 +301,8 @@ void Room_DrawBackground2D(Gfx** gfxP, void* tex, void* tlut, u16 width, u16 hei
|
||||||
bg->b.frameH = height * (1 << 2);
|
bg->b.frameH = height * (1 << 2);
|
||||||
guS2DInitBg(bg);
|
guS2DInitBg(bg);
|
||||||
|
|
||||||
// #region 2S2H [Widescreen] Account for different aspect ratios than 4:3
|
// #region SOH [Port][Widescreen]
|
||||||
// When larger we want to render an additional black rectangle behind the 2d image
|
// 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
|
// to simulate black bars on the side that cover up the world
|
||||||
s16 newX = OTRGetRectDimensionFromLeftEdge(0);
|
s16 newX = OTRGetRectDimensionFromLeftEdge(0);
|
||||||
if (newX < 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));
|
gDPSetFillColor(gfx++, GPACK_RGBA5551(0, 0, 0, 1) << 16 | GPACK_RGBA5551(0, 0, 0, 1));
|
||||||
gDPFillWideRectangle(gfx++, newX, 0, OTRGetRectDimensionFromRightEdge(SCREEN_WIDTH), SCREEN_HEIGHT);
|
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,
|
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);
|
G_AC_THRESHOLD | G_ZS_PIXEL | G_RM_NOOP | G_RM_NOOP2);
|
||||||
|
|
Loading…
Reference in New Issue