Disable skin menu "Use D2D rendering" item if D2D is globally disabled

This commit is contained in:
Birunthan Mohanathas 2013-10-06 17:12:19 +03:00
parent ded19a42fa
commit 6248f07634

View File

@ -346,7 +346,11 @@ HMENU ContextMenu::CreateSkinMenu(MeterWindow* meterWindow, int index, HMENU men
if (Gfx::CanvasD2D::Initialize())
{
if (meterWindow->GetUseD2D())
if (!Rainmeter::GetInstance().GetUseD2D())
{
EnableMenuItem(settingsMenu, IDM_SKIN_USED2D, MF_BYCOMMAND | MF_GRAYED);
}
else if (meterWindow->GetUseD2D())
{
CheckMenuItem(settingsMenu, IDM_SKIN_USED2D, MF_BYCOMMAND | MF_CHECKED);
}