https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f762aa3dd22ea271f004ddb94339522e2344719b

commit f762aa3dd22ea271f004ddb94339522e2344719b
Author:     Katayama Hirofumi MZ <[email protected]>
AuthorDate: Sun Apr 7 21:38:00 2019 +0900
Commit:     Katayama Hirofumi MZ <[email protected]>
CommitDate: Sun Apr 7 21:38:00 2019 +0900

    [SHELL32] Fix explorer file item label background CORE-15937
---
 dll/win32/shell32/CDefView.cpp | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/dll/win32/shell32/CDefView.cpp b/dll/win32/shell32/CDefView.cpp
index 1485e1677a..334e0b3613 100644
--- a/dll/win32/shell32/CDefView.cpp
+++ b/dll/win32/shell32/CDefView.cpp
@@ -633,19 +633,16 @@ void CDefView::UpdateListColors()
     else
     {
         // text background color
-        COLORREF clrTextBack = GetSysColor(COLOR_WINDOW);
-        if (m_viewinfo_data.clrTextBack != CLR_INVALID)
-        {
-            clrTextBack = m_viewinfo_data.clrTextBack;
-        }
+        COLORREF clrTextBack = m_viewinfo_data.clrTextBack;
         m_ListView.SetTextBkColor(clrTextBack);
 
         // text color
-        COLORREF clrText = GetSysColor(COLOR_WINDOWTEXT);
+        COLORREF clrText;
         if (m_viewinfo_data.clrText != CLR_INVALID)
-        {
             clrText = m_viewinfo_data.clrText;
-        }
+        else
+            clrText = GetSysColor(COLOR_WINDOWTEXT);
+
         m_ListView.SetTextColor(clrText);
 
         // Background is painted by the parent via WM_PRINTCLIENT.

Reply via email to