From 43ed6369e68965593c5cc156242baa49fa8e71b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Mon, 5 Sep 2016 19:13:44 +0000 Subject: Clist_modern: Aero Glass should be supported only for Vista and Win 7 This fixes the black background of default skin with default configuration on Win 8 and Win 10. git-svn-id: http://svn.miranda-ng.org/main/trunk@17258 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_modern/res/resource.rc | 2 +- plugins/Clist_modern/src/modern_clui.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/Clist_modern') diff --git a/plugins/Clist_modern/res/resource.rc b/plugins/Clist_modern/res/resource.rc index 09f227ac48..905cb7ee6a 100644 --- a/plugins/Clist_modern/res/resource.rc +++ b/plugins/Clist_modern/res/resource.rc @@ -545,7 +545,7 @@ BEGIN CONTROL "Round corners",IDC_ROUNDCORNERS,"Button",BS_AUTOCHECKBOX | WS_DISABLED | WS_TABSTOP,13,189,102,8 GROUPBOX "Non-layered mode",IDC_STWINDOWGROUP3,4,51,115,151 CONTROL "Disable skin engine",IDC_DISABLEENGINE,"Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,13,62,102,8 - CONTROL "Enable Aero Glass (Vista+)",IDC_AEROGLASS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,130,189,166,10 + CONTROL "Enable Aero Glass (Vista, Win 7)",IDC_AEROGLASS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,130,189,166,10 END IDD_OPT_ITEM_ROW DIALOGEX 0, 0, 232, 218 diff --git a/plugins/Clist_modern/src/modern_clui.cpp b/plugins/Clist_modern/src/modern_clui.cpp index 3f7887eee0..58903af561 100644 --- a/plugins/Clist_modern/src/modern_clui.cpp +++ b/plugins/Clist_modern/src/modern_clui.cpp @@ -305,7 +305,7 @@ HRESULT CLUI::LoadDllsRuntime() g_CluiData.fSmoothAnimation = db_get_b(NULL, "CLUI", "FadeInOut", SETTING_FADEIN_DEFAULT); g_CluiData.fLayered = (g_CluiData.fLayered*db_get_b(NULL, "ModernData", "EnableLayering", g_CluiData.fLayered)) && !db_get_b(NULL, "ModernData", "DisableEngine", SETTING_DISABLESKIN_DEFAULT); - if (IsWinVerVistaPlus()) { + if (IsWinVerVistaPlus() && !IsWinVer8Plus()) { m_hDwmapiDll = LoadLibrary(L"dwmapi.dll"); if (m_hDwmapiDll) g_proc_DWMEnableBlurBehindWindow = (HRESULT(WINAPI *)(HWND, DWM_BLURBEHIND *))GetProcAddress(m_hDwmapiDll, "DwmEnableBlurBehindWindow"); -- cgit v1.2.3