all repos — mgba @ 2775c80d082b19f1a6eb6e61b590beb18a2bc9bc

mGBA Game Boy Advance Emulator

Wii: Fix aspect ratio (fixes #500)
Vicki Pfau vi@endrift.com
Sat, 04 May 2019 19:18:11 -0700
commit

2775c80d082b19f1a6eb6e61b590beb18a2bc9bc

parent

86d226adcfd5b4a7ae1a2ea4b4a727d2beca6b73

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

jump to
M CHANGESCHANGES

@@ -21,6 +21,7 @@ - All: Fix several memory leaks

- 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: - Qt: Add missing HEVC NVENC option (fixes mgba.io/i/1323) - Qt: Improve camera initialization
M src/platform/wii/main.csrc/platform/wii/main.c

@@ -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;

@@ -194,6 +194,9 @@ audioSampleRate = 90.0 / 1.50436;

guiScale = GUI_SCALE_240p; break; } + + vmode->viWidth = 704; + vmode->viXOrigin = 8; VIDEO_SetBlack(true); VIDEO_Configure(vmode);

@@ -319,7 +322,7 @@ stream.postAudioBuffer = _postAudioBuffer;

struct mGUIRunner runner = { .params = { - 720, 480, + 640, 480, font, "", _drawStart, _drawEnd, _pollInput, _pollCursor,