make debugging full screen easier

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@154 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
spacy51 2007-12-03 18:23:21 +00:00
parent 62a08c4997
commit e8a7648cc8
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 );