From 8ed99a284f452cda3a4f9e47f6c2f296608ccec7 Mon Sep 17 00:00:00 2001 From: spacy51 Date: Mon, 31 Dec 2007 15:53:27 +0000 Subject: [PATCH] use magenta background in debug mode --- trunk/src/win32/Direct3D.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/trunk/src/win32/Direct3D.cpp b/trunk/src/win32/Direct3D.cpp index d2889cb7..b05b0733 100644 --- a/trunk/src/win32/Direct3D.cpp +++ b/trunk/src/win32/Direct3D.cpp @@ -314,7 +314,11 @@ bool Direct3DDisplay::initialize() void Direct3DDisplay::clear() { if( pDevice ) { +#ifdef _DEBUG + pDevice->Clear( 0, NULL, D3DCLEAR_TARGET, D3DCOLOR_XRGB(0xFF,0x00,0xFF), 0.0f, 0 ); +#else pDevice->Clear( 0, NULL, D3DCLEAR_TARGET, D3DCOLOR_XRGB(0x00,0x00,0x00), 0.0f, 0 ); +#endif } }