fix bogus resolutions being set

This commit is contained in:
Glenn Maynard
2005-11-24 18:28:52 +00:00
parent 6986a104ab
commit 31ef353ed6
@@ -141,6 +141,11 @@ LRESULT CALLBACK GraphicsWindow::GraphicsWindow_WndProc( HWND hWnd, UINT msg, WP
case WM_WINDOWPOSCHANGED:
{
/* If we're fullscreen and don't have focus, our window is hidden, so GetClientRect
* isn't meaningful. */
if( !g_CurrentParams.windowed && !g_bHasFocus )
break;
RECT rect;
GetClientRect( hWnd, &rect );