Wii: Stretch now sets pixel-accurate mode size cap

This commit is contained in:
Vicki Pfau 2018-09-29 12:08:21 -07:00
parent 46953b2791
commit eec39a4324
2 changed files with 3 additions and 2 deletions

View File

@ -114,6 +114,7 @@ Misc:
- mGUI: Add support for different settings types - mGUI: Add support for different settings types
- Wii: Disable use of strtof_l (fixes mgba.io/i/1106) - Wii: Disable use of strtof_l (fixes mgba.io/i/1106)
- Wii: Expose stretch configuration in settings - Wii: Expose stretch configuration in settings
- Wii: Stretch now sets pixel-accurate mode size cap
0.7 beta 1: (2018-09-24) 0.7 beta 1: (2018-09-24)
- Initial beta for 0.7 - Initial beta for 0.7

View File

@ -911,8 +911,8 @@ void _drawFrame(struct mGUIRunner* runner, bool faded) {
GX_LoadTexObj(&rescaleTex, GX_TEXMAP0); GX_LoadTexObj(&rescaleTex, GX_TEXMAP0);
} }
int hfactor = vmode->fbWidth / (corew * wAdjust); int hfactor = (vmode->fbWidth * wStretch) / (corew * wAdjust);
int vfactor = vmode->efbHeight / (coreh * hAdjust); int vfactor = (vmode->efbHeight * hStretch) / (coreh * hAdjust);
if (hfactor > vfactor) { if (hfactor > vfactor) {
scaleFactor = vfactor; scaleFactor = vfactor;
} else { } else {