Skip to content

Commit

Permalink
whb/gfx: Use 4:3 TV buffers on 4:3 TVs (#383)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
jranderia3 authored Jun 14, 2024
1 parent 8474549 commit c2682dd
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions libraries/libwhb/src/gfx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c2682dd

Please sign in to comment.