summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2016-09-05 19:13:44 +0000
committerRobert Pösel <robyer@seznam.cz>2016-09-05 19:13:44 +0000
commit43ed6369e68965593c5cc156242baa49fa8e71b5 (patch)
treea9c1494df94808bba87ac712dc9883b3f6260090
parent3dc956a73004c98c3c96cb8635c28f7646bdbde8 (diff)
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
-rw-r--r--plugins/Clist_modern/res/resource.rc2
-rw-r--r--plugins/Clist_modern/src/modern_clui.cpp2
2 files changed, 2 insertions, 2 deletions
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");