all repos — mgba @ eec39a4324386a8b853e871c23ed79b09bc397d2

mGBA Game Boy Advance Emulator

Wii: Stretch now sets pixel-accurate mode size cap
Vicki Pfau vi@endrift.com
Sat, 29 Sep 2018 12:08:21 -0700
commit

eec39a4324386a8b853e871c23ed79b09bc397d2

parent

46953b279151adff7778c530926a62996ab247ed

2 files changed, 3 insertions(+), 2 deletions(-)

jump to
M CHANGESCHANGES

@@ -114,6 +114,7 @@ - mGUI: Add SGB border configuration option

- mGUI: Add support for different settings types - Wii: Disable use of strtof_l (fixes mgba.io/i/1106) - Wii: Expose stretch configuration in settings + - Wii: Stretch now sets pixel-accurate mode size cap 0.7 beta 1: (2018-09-24) - Initial beta for 0.7
M src/platform/wii/main.csrc/platform/wii/main.c

@@ -911,8 +911,8 @@ GX_CopyTex(rescaleTexmem, GX_TRUE);

GX_LoadTexObj(&rescaleTex, GX_TEXMAP0); } - int hfactor = vmode->fbWidth / (corew * wAdjust); - int vfactor = vmode->efbHeight / (coreh * hAdjust); + int hfactor = (vmode->fbWidth * wStretch) / (corew * wAdjust); + int vfactor = (vmode->efbHeight * hStretch) / (coreh * hAdjust); if (hfactor > vfactor) { scaleFactor = vfactor; } else {