Commit 43a199d5 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

comctl32/listview: Don't invalidate list on LVM_SETTEXTCOLOR.

parent 4fc8c44b
......@@ -8914,22 +8914,17 @@ static BOOL LISTVIEW_SetTextBkColor(LISTVIEW_INFO *infoPtr, COLORREF color)
*
* PARAMETER(S):
* [I] infoPtr : valid pointer to the listview structure
* [I] clrText : text color
* [I] color : text color
*
* RETURN:
* SUCCESS : TRUE
* FAILURE : FALSE
*/
static BOOL LISTVIEW_SetTextColor (LISTVIEW_INFO *infoPtr, COLORREF clrText)
static BOOL LISTVIEW_SetTextColor (LISTVIEW_INFO *infoPtr, COLORREF color)
{
TRACE("(clrText=%x)\n", clrText);
if (infoPtr->clrText != clrText)
{
infoPtr->clrText = clrText;
LISTVIEW_InvalidateList(infoPtr);
}
TRACE("(color=%x)\n", color);
infoPtr->clrText = color;
return TRUE;
}
......
......@@ -1803,7 +1803,7 @@ static void test_color(void)
rect.right = rect.bottom = 1;
r = GetUpdateRect(hwnd, &rect, TRUE);
todo_wine expect(FALSE, r);
todo_wine ok(rect.right == 0 && rect.bottom == 0, "got update rectangle\n");
ok(rect.right == 0 && rect.bottom == 0, "got update rectangle\n");
r = ValidateRect(hwnd, NULL);
expect(TRUE, r);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment