make debugging full screen easier

This commit is contained in:
spacy51 2007-12-03 18:23:21 +00:00
parent 31e412ef51
commit cc37d74565
1 changed files with 9 additions and 0 deletions

View File

@ -160,6 +160,15 @@ void Direct3DDisplay::prepareDisplayMode()
#ifdef _DEBUG
// make debugging full screen easier
if( dpp.Windowed == FALSE ) {
dpp.Windowed = TRUE;
dpp.BackBufferFormat = D3DFMT_UNKNOWN;
dpp.BackBufferCount = 0;
dpp.FullScreen_RefreshRateInHz = 0;
dpp.Flags = 0;
}
TRACE( _T("prepareDisplayMode:\n") );
TRACE( _T("%i x %i @ %iHz:\n"), dpp.BackBufferWidth, dpp.BackBufferHeight, dpp.FullScreen_RefreshRateInHz );
TRACE( _T("Buffer Count: %i\n"), dpp.BackBufferCount+1 );