------------------------------------------------------------------------------- Reset the background color to a smart and nice grey -------------------------------------------------------------------------------
| 429 | // Reset the background color to a smart and nice grey |
| 430 | //------------------------------------------------------------------------------- |
| 431 | void ClearBG() { |
| 432 | D3DCOLOR clrColor = D3DCOLOR_ARGB(0xFF,100,100,100); |
| 433 | CBackgroundPainter::Instance().SetColor(clrColor); |
| 434 | |
| 435 | RegSetValueExA(g_hRegistry,"LastSkyBoxSrc",0,REG_SZ,(const BYTE*)"",MAX_PATH); |
| 436 | RegSetValueExA(g_hRegistry,"LastTextureSrc",0,REG_SZ,(const BYTE*)"",MAX_PATH); |
| 437 | |
| 438 | RegSetValueExA(g_hRegistry,"Color",0,REG_DWORD,(const BYTE*)&clrColor,4); |
| 439 | } |
| 440 | |
| 441 | //------------------------------------------------------------------------------- |
| 442 | // Let the user choose a color in a windows standard color dialog |
no test coverage detected