user32: Simplify a RECT copy.

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2016-07-19 09:53:55 +02:00 committed by Alexandre Julliard
parent 07ada9a85b
commit e13011f63e
1 changed files with 3 additions and 7 deletions

View File

@ -1059,14 +1059,10 @@ static LRESULT LISTBOX_Paint( LB_DESCR *descr, HDC hdc )
else
rect.bottom = rect.top + descr->items[i].height;
/* keep the focus rect, to paint the focus item after */
if (i == descr->focus_item)
{
/* keep the focus rect, to paint the focus item after */
focusRect.left = rect.left;
focusRect.right = rect.right;
focusRect.top = rect.top;
focusRect.bottom = rect.bottom;
}
focusRect = rect;
LISTBOX_PaintItem( descr, hdc, &rect, i, ODA_DRAWENTIRE, TRUE );
rect.top = rect.bottom;