all repos — mgba @ 90eca20ab26783409a8eecd5e6093c84b715a091

mGBA Game Boy Advance Emulator

Wii: Increase GUI size
Jeffrey Pfau jeffrey@endrift.com
Sat, 09 Jan 2016 00:19:59 -0800
commit

90eca20ab26783409a8eecd5e6093c84b715a091

parent

1ac5726d8a2b4ff8f63d0d0e80445b92726fcf42

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

jump to
M src/platform/wii/main.csrc/platform/wii/main.c

@@ -45,6 +45,7 @@ FM_MAX

}; #define SAMPLES 1024 +#define GUI_SCALE 1.35 static void _retraceCallback(u32 count);

@@ -205,7 +206,7 @@ rotation.readGyroZ = _readGyroZ;

struct GBAGUIRunner runner = { .params = { - vmode->fbWidth * 1.6, vmode->efbHeight * 1.6, + vmode->fbWidth * GUI_SCALE, vmode->efbHeight * GUI_SCALE, font, "", _drawStart, _drawEnd, _pollInput, _pollCursor,

@@ -498,7 +499,7 @@ GX_LoadProjectionMtx(proj, GX_ORTHOGRAPHIC);

} void _guiPrepare(void) { - _reproj2(vmode->fbWidth * 1.6, vmode->efbHeight * 1.6); + _reproj2(vmode->fbWidth * GUI_SCALE, vmode->efbHeight * GUI_SCALE); } void _guiFinish(void) {