fix ScreenEvaluationCourse glitches
Change ScreenManager message sending methods for more precise control: - SendMessageToTopScreen: handle the message immediately - PostMessageToTopScreen: post message to queue for processing next update
This commit is contained in:
@@ -405,7 +405,7 @@ void ScreenOptions::HandleScreenMessage( const ScreenMessage SM )
|
||||
switch( SM )
|
||||
{
|
||||
case SM_MenuTimer:
|
||||
this->SendScreenMessage( SM_BeginFadingOut, 0 );
|
||||
this->PostScreenMessage( SM_BeginFadingOut, 0 );
|
||||
break;
|
||||
case SM_GoToPrevScreen:
|
||||
// this->ExportOptions(); // Don't save options if we're going back!
|
||||
@@ -460,7 +460,7 @@ void ScreenOptions::MenuBack( PlayerNumber pn )
|
||||
|
||||
void ScreenOptions::StartGoToNextState()
|
||||
{
|
||||
this->SendScreenMessage( SM_BeginFadingOut, 0 );
|
||||
this->PostScreenMessage( SM_BeginFadingOut, 0 );
|
||||
}
|
||||
|
||||
void ScreenOptions::MenuStart( PlayerNumber pn )
|
||||
@@ -478,11 +478,11 @@ void ScreenOptions::MenuStart( PlayerNumber pn )
|
||||
if( m_iCurrentRow[pn] != m_iNumOptionRows ) // not on exit
|
||||
MenuDown( pn ); // can't go down any more
|
||||
else if( bAllOnExit )
|
||||
this->SendScreenMessage( SM_BeginFadingOut, 0 );
|
||||
this->PostScreenMessage( SM_BeginFadingOut, 0 );
|
||||
}
|
||||
else // !m_bArcadeOptionsNavigation
|
||||
{
|
||||
this->SendScreenMessage( SM_BeginFadingOut, 0 );
|
||||
this->PostScreenMessage( SM_BeginFadingOut, 0 );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user