reacquire D3D device when lost in full screen (user alt+tabs out)

This commit is contained in:
Chris Danford
2003-05-24 05:44:31 +00:00
parent e45220cdf2
commit 7f3b7b9162
7 changed files with 18 additions and 23 deletions
+3 -3
View File
@@ -254,7 +254,7 @@ void ScreenSystemLayer::Update( float fDeltaTime )
if( PREFSMAN && PREFSMAN->m_bShowStats )
{
m_textStats.SetDiffuse( RageColor(1,1,1,0.5) );
m_textStats.SetDiffuse( RageColor(1,1,1,0.7f) );
/* If FPS == 0, we don't have stats yet. */
if(DISPLAY->GetFPS())
@@ -383,7 +383,7 @@ void ScreenManager::Update( float fDeltaTime )
void ScreenManager::Draw()
{
DISPLAY->Clear();
DISPLAY->BeginFrame();
if(g_SkipRendering)
{
@@ -404,7 +404,7 @@ void ScreenManager::Draw()
m_ScreenStack[i]->Draw();
m_SystemLayer->Draw();
DISPLAY->Flip();
DISPLAY->EndFrame();
}