mirror of https://github.com/mgba-emu/mgba.git
Wii: Stretch now sets pixel-accurate mode size cap
This commit is contained in:
parent
46953b2791
commit
eec39a4324
1
CHANGES
1
CHANGES
|
@ -114,6 +114,7 @@ Misc:
|
|||
- 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
|
||||
|
|
|
@ -911,8 +911,8 @@ void _drawFrame(struct mGUIRunner* runner, bool faded) {
|
|||
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 {
|
||||
|
|
Loading…
Reference in New Issue