Skip to content

Commit 4e415d8

Browse files
committed
[USER32] - Sync with Wine Staging 1.9.18.
svn path=/trunk/; revision=72652
1 parent 3e15c24 commit 4e415d8

File tree

1 file changed

+3
-7
lines changed
  • reactos/win32ss/user/user32/controls

1 file changed

+3
-7
lines changed

reactos/win32ss/user/user32/controls/listbox.c

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,14 +1069,10 @@ static LRESULT LISTBOX_Paint( LB_DESCR *descr, HDC hdc )
10691069
else
10701070
rect.bottom = rect.top + descr->items[i].height;
10711071

1072+
/* keep the focus rect, to paint the focus item after */
10721073
if (i == descr->focus_item)
1073-
{
1074-
/* keep the focus rect, to paint the focus item after */
1075-
focusRect.left = rect.left;
1076-
focusRect.right = rect.right;
1077-
focusRect.top = rect.top;
1078-
focusRect.bottom = rect.bottom;
1079-
}
1074+
focusRect = rect;
1075+
10801076
LISTBOX_PaintItem( descr, hdc, &rect, i, ODA_DRAWENTIRE, TRUE );
10811077
rect.top = rect.bottom;
10821078

0 commit comments

Comments
 (0)