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:
parent
07ada9a85b
commit
e13011f63e
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue