mirror of
https://github.com/reactos/reactos
synced 2025-10-06 00:12:51 +02:00
[NTUSER][COMCTL32] Fix garbage displayed at bottom of listbox.c (#8316)
CORE-20062 @I_Kill_Bugs fix for rect.bottom in LISTBOX_Paint function.
This commit is contained in:
@@ -1129,7 +1129,9 @@ static LRESULT LISTBOX_Paint( LB_DESCR *descr, HDC hdc )
|
||||
/* keep the focus rect, to paint the focus item after */
|
||||
if (i == descr->focus_item)
|
||||
focusRect = rect;
|
||||
|
||||
#ifdef __REACTOS__
|
||||
rect.bottom = min(rect.bottom, descr->height);
|
||||
#endif
|
||||
LISTBOX_PaintItem( descr, hdc, &rect, i, ODA_DRAWENTIRE, TRUE );
|
||||
rect.top = rect.bottom;
|
||||
|
||||
|
Reference in New Issue
Block a user