From 53acc507f76434fe825e45ae1d35b6aa52a3a5a5 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 29 Aug 2002 21:52:26 +0000 Subject: [PATCH] Quiet the CheckDeviceType logs a bit. --- stepmania/src/RageDisplay.cpp | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/stepmania/src/RageDisplay.cpp b/stepmania/src/RageDisplay.cpp index 656d3f6b22..8b5caa0060 100644 --- a/stepmania/src/RageDisplay.cpp +++ b/stepmania/src/RageDisplay.cpp @@ -202,26 +202,17 @@ bool RageDisplay::SwitchDisplayMode( fmtDisplay = fmtBackBuffer = arrayBackBufferFormats[i]; } - LOG->Trace( "Testing format: display %d, back buffer %d, windowed %d...", fmtDisplay, fmtBackBuffer, bWindowed ); + LOG->Trace( CString(i? "That won't work. ":"") + + "Testing format: display %d, back buffer %d, windowed %d...", + fmtDisplay, fmtBackBuffer, bWindowed ); - hr = m_pd3d->CheckDeviceType( - D3DADAPTER_DEFAULT, - D3DDEVTYPE_HAL, - fmtDisplay, - fmtBackBuffer, - bWindowed - ); + hr = m_pd3d->CheckDeviceType( D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, + fmtDisplay, fmtBackBuffer, bWindowed ); if( SUCCEEDED(hr) ) - { - LOG->Trace( "This will work." ); break; // done searching - } - else - { - LOG->Trace( "This won't work. Keep searching." ); - } } + LOG->Trace( "This will work." ); if( i == arrayBackBufferFormats.GetSize() ) // we didn't find an appropriate format {