mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2025-02-04 14:46:24 +01:00
-added display clearing before showing wait message
This commit is contained in:
parent
0c32d1b0c1
commit
4c4224c49d
@ -167,12 +167,7 @@ void CVideo::init(void)
|
||||
GX_SetNumChans(0);
|
||||
GX_SetZCompLoc(GX_ENABLE);
|
||||
setup2DProjection();
|
||||
|
||||
VIDEO_ClearFrameBuffer(m_rmode, m_frameBuf[0], COLOR_BLACK);
|
||||
VIDEO_ClearFrameBuffer(m_rmode, m_frameBuf[1], COLOR_BLACK);
|
||||
render();
|
||||
render();
|
||||
|
||||
_clearScreen();
|
||||
VIDEO_SetBlack(FALSE);
|
||||
VIDEO_Flush();
|
||||
VIDEO_WaitVSync();
|
||||
@ -183,6 +178,14 @@ void CVideo::init(void)
|
||||
memset(m_stencil, 0, CVideo::_stencilWidth * CVideo::_stencilHeight);
|
||||
}
|
||||
|
||||
void CVideo::_clearScreen()
|
||||
{
|
||||
VIDEO_ClearFrameBuffer(m_rmode, m_frameBuf[0], COLOR_BLACK);
|
||||
VIDEO_ClearFrameBuffer(m_rmode, m_frameBuf[1], COLOR_BLACK);
|
||||
render();
|
||||
render();
|
||||
}
|
||||
|
||||
void CVideo::set2DViewport(u32 w, u32 h, int x, int y)
|
||||
{
|
||||
m_width2D = std::min(std::max(512u, w), 800u);
|
||||
@ -233,11 +236,7 @@ void CVideo::cleanup(void)
|
||||
{
|
||||
gprintf("Cleaning up video...\n");
|
||||
|
||||
VIDEO_ClearFrameBuffer(m_rmode, m_frameBuf[0], COLOR_BLACK);
|
||||
VIDEO_ClearFrameBuffer(m_rmode, m_frameBuf[1], COLOR_BLACK);
|
||||
render();
|
||||
render();
|
||||
|
||||
_clearScreen();
|
||||
VIDEO_SetBlack(TRUE);
|
||||
VIDEO_Flush();
|
||||
|
||||
@ -495,6 +494,7 @@ void CVideo::_showWaitMessages(CVideo *m)
|
||||
|
||||
vector<STexture>::iterator waitItr = m->m_waitMessages.begin();
|
||||
gprintf("Going to show a wait message screen, delay: %d, # images: %d\n", waitFrames, m->m_waitMessages.size());
|
||||
m->_clearScreen();
|
||||
|
||||
m->waitMessage(*waitItr);
|
||||
waitItr += PNGfadeDirection;
|
||||
|
@ -114,6 +114,7 @@ private:
|
||||
private:
|
||||
void _drawAASceneWithAlpha(float w, float h);
|
||||
void _setViewPort(float x, float y, float w, float h);
|
||||
void _clearScreen();
|
||||
static void _showWaitMessages(CVideo *m);
|
||||
private:
|
||||
CVideo(const CVideo &);
|
||||
|
Loading…
x
Reference in New Issue
Block a user