Author: jimtabor
Date: Sun Sep 11 00:58:12 2016
New Revision: 72652
URL:
http://svn.reactos.org/svn/reactos?rev=72652&view=rev
Log:
[USER32] - Sync with Wine Staging 1.9.18.
Modified:
trunk/reactos/win32ss/user/user32/controls/listbox.c
Modified: trunk/reactos/win32ss/user/user32/controls/listbox.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/contro…
==============================================================================
--- trunk/reactos/win32ss/user/user32/controls/listbox.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/controls/listbox.c [iso-8859-1] Sun Sep 11 00:58:12
2016
@@ -1069,14 +1069,10 @@
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;