mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-12-25 03:11:58 +01:00
-fixed short displayed greenscreen on wiiflow boot
This commit is contained in:
parent
9f9c455aa9
commit
0967af43b3
@ -120,6 +120,7 @@ void CVideo::setAA(u8 aa, bool alpha, int width, int height)
|
|||||||
|
|
||||||
void CVideo::init(void)
|
void CVideo::init(void)
|
||||||
{
|
{
|
||||||
|
/* General Video Init */
|
||||||
VIDEO_Init();
|
VIDEO_Init();
|
||||||
m_wide = CONF_GetAspectRatio() == CONF_ASPECT_16_9;
|
m_wide = CONF_GetAspectRatio() == CONF_ASPECT_16_9;
|
||||||
m_rmode = VIDEO_GetPreferredMode(NULL);
|
m_rmode = VIDEO_GetPreferredMode(NULL);
|
||||||
@ -150,15 +151,7 @@ void CVideo::init(void)
|
|||||||
if(CONF_GetDisplayOffsetH(&hoffset) == 0)
|
if(CONF_GetDisplayOffsetH(&hoffset) == 0)
|
||||||
m_rmode->viXOrigin += hoffset;
|
m_rmode->viXOrigin += hoffset;
|
||||||
|
|
||||||
VIDEO_Configure(m_rmode);
|
/* GX Init */
|
||||||
VIDEO_SetBlack(FALSE);
|
|
||||||
VIDEO_Flush();
|
|
||||||
VIDEO_WaitVSync();
|
|
||||||
if(m_rmode->viTVMode & VI_NON_INTERLACE)
|
|
||||||
VIDEO_WaitVSync();
|
|
||||||
else while(VIDEO_GetNextField())
|
|
||||||
VIDEO_WaitVSync();
|
|
||||||
|
|
||||||
m_frameBuf[0] = MEM_K0_TO_K1(SYS_AllocateFramebuffer(m_rmode));
|
m_frameBuf[0] = MEM_K0_TO_K1(SYS_AllocateFramebuffer(m_rmode));
|
||||||
m_frameBuf[1] = MEM_K0_TO_K1(SYS_AllocateFramebuffer(m_rmode));
|
m_frameBuf[1] = MEM_K0_TO_K1(SYS_AllocateFramebuffer(m_rmode));
|
||||||
m_curFB = 0;
|
m_curFB = 0;
|
||||||
@ -194,7 +187,15 @@ void CVideo::init(void)
|
|||||||
GX_SetVtxAttrFmt(GX_VTXFMT0, GX_VA_TEX0+i, GX_TEX_ST, GX_F32, 0);
|
GX_SetVtxAttrFmt(GX_VTXFMT0, GX_VA_TEX0+i, GX_TEX_ST, GX_F32, 0);
|
||||||
m_stencil = memalign(32, CVideo::_stencilWidth * CVideo::_stencilHeight);
|
m_stencil = memalign(32, CVideo::_stencilWidth * CVideo::_stencilHeight);
|
||||||
memset(m_stencil, 0, CVideo::_stencilWidth * CVideo::_stencilHeight);
|
memset(m_stencil, 0, CVideo::_stencilWidth * CVideo::_stencilHeight);
|
||||||
|
|
||||||
|
/* Configure Video */
|
||||||
|
VIDEO_Configure(m_rmode);
|
||||||
_clearScreen();
|
_clearScreen();
|
||||||
|
VIDEO_SetBlack(FALSE);
|
||||||
|
VIDEO_Flush();
|
||||||
|
VIDEO_WaitVSync();
|
||||||
|
if(m_rmode->viTVMode & VI_NON_INTERLACE)
|
||||||
|
VIDEO_WaitVSync();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CVideo::_clearScreen()
|
void CVideo::_clearScreen()
|
||||||
|
Loading…
Reference in New Issue
Block a user