all repos — mgba @ 563aed44d854d528f5cee01b1bcddf007b48b4e2

mGBA Game Boy Advance Emulator

Wii: Fix garbage flash at startup (#354)

Diego A Diego_Arroyo@live.com
Fri, 19 Aug 2016 18:47:58 -0400
commit

563aed44d854d528f5cee01b1bcddf007b48b4e2

parent

affe5e31a786e39122d932cc9f38e0e3cb643749

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

jump to
M CHANGESCHANGES

@@ -26,6 +26,7 @@ - Qt: Fix hanging key press after disabling autofire

- PSP2: Delete threads after they return - GBA Video: WIN0/1 take priority over OBJWIN - PSP2: Fix mapping/unmapping from not at 0 + - Wii: Fix garbage flash at startup Misc: - 3DS: Use blip_add_delta_fast for a small speed improvement - OpenGL: Log shader compilation failure
M src/platform/wii/main.csrc/platform/wii/main.c

@@ -112,12 +112,12 @@

VIDEO_SetBlack(true); VIDEO_Configure(vmode); VIDEO_SetNextFramebuffer(framebuffer[whichFb]); - VIDEO_SetBlack(false); VIDEO_Flush(); VIDEO_WaitVSync(); if (vmode->viTVMode & VI_NON_INTERLACE) { VIDEO_WaitVSync(); } + VIDEO_SetBlack(false); GX_SetViewport(0, 0, vmode->fbWidth, vmode->efbHeight, 0, 1); f32 yscale = GX_GetYScaleFactor(vmode->efbHeight, vmode->xfbHeight);