fixups for upcoming changes
This commit is contained in:
@@ -391,8 +391,6 @@ RageDisplay::VideoModeParams GraphicsWindow::GetParams()
|
|||||||
|
|
||||||
void GraphicsWindow::Update()
|
void GraphicsWindow::Update()
|
||||||
{
|
{
|
||||||
ASSERT( DISPLAY );
|
|
||||||
|
|
||||||
MSG msg;
|
MSG msg;
|
||||||
while( PeekMessage( &msg, NULL, 0, 0, PM_NOREMOVE ) )
|
while( PeekMessage( &msg, NULL, 0, 0, PM_NOREMOVE ) )
|
||||||
{
|
{
|
||||||
@@ -406,11 +404,13 @@ void GraphicsWindow::Update()
|
|||||||
g_bLastHasFocus = g_bHasFocus;
|
g_bLastHasFocus = g_bHasFocus;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( g_bResolutionChanged )
|
if( g_bResolutionChanged && DISPLAY != NULL )
|
||||||
{
|
{
|
||||||
/* Let DISPLAY know that our resolution has changed. */
|
/* Let DISPLAY know that our resolution has changed. (Note that
|
||||||
DISPLAY->ResolutionChanged();
|
* ResolutionChanged() can come back here, so reset g_bResolutionChanged
|
||||||
|
* first.) */
|
||||||
g_bResolutionChanged = false;
|
g_bResolutionChanged = false;
|
||||||
|
DISPLAY->ResolutionChanged();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user