fixups for upcoming changes

This commit is contained in:
Glenn Maynard
2005-07-12 23:44:17 +00:00
parent 796ac96c50
commit b85b6c7839
@@ -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();
} }
} }