comctl32/listview: Move item position calculation out of subitem loop.
This commit is contained in:
parent
1a84ca42b2
commit
4d2883c189
|
@ -4127,13 +4127,13 @@ static void LISTVIEW_RefreshReport(LISTVIEW_INFO *infoPtr, ITERATOR *i, HDC hdc,
|
|||
/* iterate through the invalidated rows */
|
||||
while(iterator_next(i))
|
||||
{
|
||||
LISTVIEW_GetItemOrigin(infoPtr, i->nItem, &Position);
|
||||
Position.x += Origin.x;
|
||||
Position.y += Origin.y;
|
||||
|
||||
/* iterate through the invalidated columns */
|
||||
while(iterator_next(&j))
|
||||
{
|
||||
LISTVIEW_GetItemOrigin(infoPtr, i->nItem, &Position);
|
||||
Position.x += Origin.x;
|
||||
Position.y += Origin.y;
|
||||
|
||||
if (rgntype == COMPLEXREGION && !((infoPtr->dwLvExStyle & LVS_EX_FULLROWSELECT) && j.nItem == 0))
|
||||
{
|
||||
LISTVIEW_GetHeaderRect(infoPtr, j.nItem, &rcItem);
|
||||
|
|
Loading…
Reference in New Issue