Michael Stefaniuc : user32: Simplify a RECT copy.

Alexandre Julliard julliard at winehq.org
Tue Jul 19 10:34:21 CDT 2016


Module: wine
Branch: master
Commit: e13011f63e43e589ea9f13bafe0367e664249fe0
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e13011f63e43e589ea9f13bafe0367e664249fe0

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Tue Jul 19 09:53:55 2016 +0200

user32: Simplify a RECT copy.

Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/user32/listbox.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/dlls/user32/listbox.c b/dlls/user32/listbox.c
index b73aa79..230f8da 100644
--- a/dlls/user32/listbox.c
+++ b/dlls/user32/listbox.c
@@ -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;
 




More information about the wine-cvs mailing list