mirror of https://github.com/mgba-emu/mgba.git
Wii: Fix garbage flash at startup (#354)
This commit is contained in:
parent
affe5e31a7
commit
563aed44d8
1
CHANGES
1
CHANGES
|
@ -26,6 +26,7 @@ Bugfixes:
|
||||||
- PSP2: Delete threads after they return
|
- PSP2: Delete threads after they return
|
||||||
- GBA Video: WIN0/1 take priority over OBJWIN
|
- GBA Video: WIN0/1 take priority over OBJWIN
|
||||||
- PSP2: Fix mapping/unmapping from not at 0
|
- PSP2: Fix mapping/unmapping from not at 0
|
||||||
|
- Wii: Fix garbage flash at startup
|
||||||
Misc:
|
Misc:
|
||||||
- 3DS: Use blip_add_delta_fast for a small speed improvement
|
- 3DS: Use blip_add_delta_fast for a small speed improvement
|
||||||
- OpenGL: Log shader compilation failure
|
- OpenGL: Log shader compilation failure
|
||||||
|
|
|
@ -112,12 +112,12 @@ static void reconfigureScreen(struct mCore* core, GXRModeObj* vmode) {
|
||||||
VIDEO_SetBlack(true);
|
VIDEO_SetBlack(true);
|
||||||
VIDEO_Configure(vmode);
|
VIDEO_Configure(vmode);
|
||||||
VIDEO_SetNextFramebuffer(framebuffer[whichFb]);
|
VIDEO_SetNextFramebuffer(framebuffer[whichFb]);
|
||||||
VIDEO_SetBlack(false);
|
|
||||||
VIDEO_Flush();
|
VIDEO_Flush();
|
||||||
VIDEO_WaitVSync();
|
VIDEO_WaitVSync();
|
||||||
if (vmode->viTVMode & VI_NON_INTERLACE) {
|
if (vmode->viTVMode & VI_NON_INTERLACE) {
|
||||||
VIDEO_WaitVSync();
|
VIDEO_WaitVSync();
|
||||||
}
|
}
|
||||||
|
VIDEO_SetBlack(false);
|
||||||
GX_SetViewport(0, 0, vmode->fbWidth, vmode->efbHeight, 0, 1);
|
GX_SetViewport(0, 0, vmode->fbWidth, vmode->efbHeight, 0, 1);
|
||||||
|
|
||||||
f32 yscale = GX_GetYScaleFactor(vmode->efbHeight, vmode->xfbHeight);
|
f32 yscale = GX_GetYScaleFactor(vmode->efbHeight, vmode->xfbHeight);
|
||||||
|
|
Loading…
Reference in New Issue