all repos — mgba @ b37835366ddd4a3a8a542406bf02fb4a5920e527

mGBA Game Boy Advance Emulator

Wii: Fix draw ordering
Jeffrey Pfau jeffrey@endrift.com
Sun, 03 Jan 2016 17:07:09 -0800
commit

b37835366ddd4a3a8a542406bf02fb4a5920e527

parent

0bb45dad0ded73335f30d09c5f06e1716c4b4e93

1 files changed, 1 insertions(+), 4 deletions(-)

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

@@ -147,7 +147,6 @@

reconfigureScreen(vmode); GX_SetCullMode(GX_CULL_NONE); - GX_CopyDisp(framebuffer[whichFb], GX_TRUE); GX_SetDispCopyGamma(GX_GM_1_0); GX_ClearVtxDesc();

@@ -281,11 +280,10 @@ GX_SetViewport(0, 0, vmode->fbWidth, vmode->efbHeight, 0, 1);

} static void _drawEnd(void) { - GX_DrawDone(); - whichFb = !whichFb; GX_CopyDisp(framebuffer[whichFb], GX_TRUE); + GX_DrawDone(); VIDEO_SetNextFramebuffer(framebuffer[whichFb]); VIDEO_Flush();

@@ -673,7 +671,6 @@ double val = mag * sinf(M_PI * ang / 180.0f);

return (s8)(val * 128.0f); } - static s8 WPAD_StickY(u8 chan, u8 right) { float mag = 0.0;