[SHELL32] Fix explorer file item label background CORE-15937
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Sun, 7 Apr 2019 12:38:00 +0000 (21:38 +0900)
committerKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Sun, 7 Apr 2019 12:38:00 +0000 (21:38 +0900)
dll/win32/shell32/CDefView.cpp

index 1485e16..334e0b3 100644 (file)
@@ -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.