mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
Added patch to preserve custom colors between subitems for listview control.
This commit is contained in:
parent
1acbf46fcf
commit
27ba45e053
@ -0,0 +1,28 @@
|
||||
From 21f4e393d9843841f2038b09f88d6bcb96d9f539 Mon Sep 17 00:00:00 2001
|
||||
From: Daniel Jelinski <djelinski1@gmail.com>
|
||||
Date: Sat, 12 Jul 2014 23:58:19 +0200
|
||||
Subject: comctl32: Preserve custom colors between subitems.
|
||||
|
||||
---
|
||||
dlls/comctl32/listview.c | 5 -----
|
||||
1 file changed, 5 deletions(-)
|
||||
|
||||
diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
|
||||
index 38c376c..f83254a 100644
|
||||
--- a/dlls/comctl32/listview.c
|
||||
+++ b/dlls/comctl32/listview.c
|
||||
@@ -4794,11 +4794,6 @@ static BOOL LISTVIEW_DrawItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, ITERAT
|
||||
|
||||
if (cdsubitemmode & CDRF_NOTIFYSUBITEMDRAW)
|
||||
subitemstage = notify_customdraw(infoPtr, CDDS_SUBITEM | CDDS_ITEMPREPAINT, &nmlvcd);
|
||||
- else
|
||||
- {
|
||||
- nmlvcd.clrTextBk = infoPtr->clrTextBk;
|
||||
- nmlvcd.clrText = infoPtr->clrText;
|
||||
- }
|
||||
|
||||
if (subitems->nItem == 0 || (cdmode & CDRF_NOTIFYITEMDRAW))
|
||||
prepaint_setup(infoPtr, hdc, &nmlvcd, FALSE);
|
||||
--
|
||||
2.8.0
|
||||
|
1
patches/comctl32-Listview_DrawItem/definition
Normal file
1
patches/comctl32-Listview_DrawItem/definition
Normal file
@ -0,0 +1 @@
|
||||
Fixes: [38941] Preserve custom colors between subitems for listview control
|
@ -94,6 +94,7 @@ patch_enable_all ()
|
||||
enable_browseui_Progress_Dialog="$1"
|
||||
enable_combase_RoApi="$1"
|
||||
enable_comctl32_Button_Theming="$1"
|
||||
enable_comctl32_Listview_DrawItem="$1"
|
||||
enable_comctl32_PROPSHEET_InsertPage="$1"
|
||||
enable_comctl32_TTM_ADDTOOLW="$1"
|
||||
enable_comdlg32_lpstrFileTitle="$1"
|
||||
@ -450,6 +451,9 @@ patch_enable ()
|
||||
comctl32-Button_Theming)
|
||||
enable_comctl32_Button_Theming="$2"
|
||||
;;
|
||||
comctl32-Listview_DrawItem)
|
||||
enable_comctl32_Listview_DrawItem="$2"
|
||||
;;
|
||||
comctl32-PROPSHEET_InsertPage)
|
||||
enable_comctl32_PROPSHEET_InsertPage="$2"
|
||||
;;
|
||||
@ -2690,6 +2694,21 @@ if test "$enable_comctl32_Button_Theming" -eq 1; then
|
||||
) >> "$patchlist"
|
||||
fi
|
||||
|
||||
# Patchset comctl32-Listview_DrawItem
|
||||
# |
|
||||
# | This patchset fixes the following Wine bugs:
|
||||
# | * [#38941] Preserve custom colors between subitems for listview control
|
||||
# |
|
||||
# | Modified files:
|
||||
# | * dlls/comctl32/listview.c
|
||||
# |
|
||||
if test "$enable_comctl32_Listview_DrawItem" -eq 1; then
|
||||
patch_apply comctl32-Listview_DrawItem/0001-comctl32-Preserve-custom-colors-between-subitems.patch
|
||||
(
|
||||
echo '+ { "Daniel Jelinski", "comctl32: Preserve custom colors between subitems.", 1 },';
|
||||
) >> "$patchlist"
|
||||
fi
|
||||
|
||||
# Patchset comctl32-PROPSHEET_InsertPage
|
||||
# |
|
||||
# | This patchset fixes the following Wine bugs:
|
||||
|
Loading…
Reference in New Issue
Block a user