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

This commit is contained in:
Nikolay Sivov 2011-07-20 16:04:08 +04:00 committed by Alexandre Julliard
parent 4fc8c44bf1
commit 43a199d54d
2 changed files with 5 additions and 10 deletions

View File

@ -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;
}

View File

@ -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);