------------------------------------------------------------------------------- Let the user choose the background color for the viewer -------------------------------------------------------------------------------
| 487 | // Let the user choose the background color for the viewer |
| 488 | //------------------------------------------------------------------------------- |
| 489 | void ChooseBGColor() { |
| 490 | RegSetValueExA(g_hRegistry,"LastSkyBoxSrc",0,REG_SZ,(const BYTE*)"",MAX_PATH); |
| 491 | RegSetValueExA(g_hRegistry,"LastTextureSrc",0,REG_SZ,(const BYTE*)"",MAX_PATH); |
| 492 | |
| 493 | D3DCOLOR clrColor; |
| 494 | DisplayColorDialog(&clrColor); |
| 495 | CBackgroundPainter::Instance().SetColor(clrColor); |
| 496 | |
| 497 | RegSetValueExA(g_hRegistry,"Color",0,REG_DWORD,(const BYTE*)&clrColor,4); |
| 498 | } |
| 499 | |
| 500 | //------------------------------------------------------------------------------- |
| 501 | // Display the OpenFile dialog and let the user choose a new slybox as bg |
no test coverage detected