Wii: Fix aspect ratio (fixes #500)

This commit is contained in:
Vicki Pfau 2019-05-04 19:18:11 -07:00
parent 4dbebe8702
commit 609d5314ec
2 changed files with 6 additions and 2 deletions

View File

@ -36,6 +36,7 @@ Other fixes:
- LR35902: Fix trailing whitespace in disassembly
- Qt: Fix adjusting magnification in tile viewer when not fitting to window
- FFmpeg: Improve initialization reliability and cleanup
- Wii: Fix aspect ratio (fixes mgba.io/i/500)
Misc:
- GBA Savedata: EEPROM performance fixes
- GBA Savedata: Automatically map 1Mbit Flash files as 1Mbit Flash

View File

@ -102,7 +102,7 @@ static struct mRotationSource rotation;
static GXRModeObj* vmode;
static float wAdjust;
static float hAdjust;
static float wStretch = 1.0f;
static float wStretch = 0.9f;
static float hStretch = 0.9f;
static float guiScale = GUI_SCALE;
static Mtx model, view, modelview;
@ -195,6 +195,9 @@ static void reconfigureScreen(struct mGUIRunner* runner) {
break;
}
vmode->viWidth = 704;
vmode->viXOrigin = 8;
VIDEO_SetBlack(true);
VIDEO_Configure(vmode);
@ -319,7 +322,7 @@ int main(int argc, char* argv[]) {
struct mGUIRunner runner = {
.params = {
720, 480,
640, 480,
font, "",
_drawStart, _drawEnd,
_pollInput, _pollCursor,