whb/gfx: Use 4:3 TV buffers on 4:3 TVs (#383)

* square monitor support

* Update gfx.c

Fix typo

* do it using gx2 instead of avm

* Update gfx.c

remove some newlines

* Update gfx.c

newline fix

* Update gfx.c
This commit is contained in:
jranderia3
2024-06-14 14:04:58 -04:00
committed by GitHub
parent 8474549331
commit c2682dd964

View File

@@ -315,9 +315,15 @@ WHBGfxInit()
{
case GX2_TV_SCAN_MODE_480I:
case GX2_TV_SCAN_MODE_480P:
sTvRenderMode = GX2_TV_RENDER_MODE_WIDE_480P;
tvWidth = 854;
tvHeight = 480;
if (GX2GetSystemTVAspectRatio() == GX2_ASPECT_RATIO_16_9) {
sTvRenderMode = GX2_TV_RENDER_MODE_WIDE_480P;
tvWidth = 854;
tvHeight = 480;
} else {
sTvRenderMode = GX2_TV_RENDER_MODE_STANDARD_480P;
tvWidth = 640;
tvHeight = 480;
}
break;
case GX2_TV_SCAN_MODE_1080I:
case GX2_TV_SCAN_MODE_1080P: