From c77272a3e6c97cff144e433b819ea1b2139481f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Mon, 30 May 2016 21:30:25 +0000 Subject: [PATCH] [SHELL32] It is enough to check the "ListviewShadow" registry setting for deciding whether or not the desktop icons should be transparent. Now we also get transparent icons in safe mode with no wallpaper. Thanks Jared Smudde for having pointing this out to me. svn path=/trunk/; revision=71464 --- reactos/dll/win32/shell32/CDefView.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/reactos/dll/win32/shell32/CDefView.cpp b/reactos/dll/win32/shell32/CDefView.cpp index e936f23b584..c92b7eba40c 100644 --- a/reactos/dll/win32/shell32/CDefView.cpp +++ b/reactos/dll/win32/shell32/CDefView.cpp @@ -580,7 +580,6 @@ void CDefView::UpdateListColors() /* Check if drop shadows option is enabled */ BOOL bDropShadow = FALSE; DWORD cbDropShadow = sizeof(bDropShadow); - WCHAR wszBuf[16] = L""; /* * The desktop ListView always take the default desktop colours, by @@ -591,7 +590,7 @@ void CDefView::UpdateListColors() RegGetValueW(HKEY_CURRENT_USER, L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", L"ListviewShadow", RRF_RT_DWORD, NULL, &bDropShadow, &cbDropShadow); - if (bDropShadow && SystemParametersInfoW(SPI_GETDESKWALLPAPER, _countof(wszBuf), wszBuf, 0) && wszBuf[0]) + if (bDropShadow) { /* Set the icon background transparent */ m_ListView.SetTextBkColor(CLR_NONE);