mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Disable skin menu "Use D2D rendering" item if D2D is globally disabled
This commit is contained in:
parent
ded19a42fa
commit
6248f07634
@ -346,7 +346,11 @@ HMENU ContextMenu::CreateSkinMenu(MeterWindow* meterWindow, int index, HMENU men
|
|||||||
|
|
||||||
if (Gfx::CanvasD2D::Initialize())
|
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);
|
CheckMenuItem(settingsMenu, IDM_SKIN_USED2D, MF_BYCOMMAND | MF_CHECKED);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user