shell32/autocomplete: Simplify a calculation.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9644205540
commit
72d8b7befd
@ -200,7 +200,7 @@ static void autocomplete_text(IAutoCompleteImpl *ac, HWND hwnd, enum autoappend_
|
|||||||
/* It seems that Windows XP displays 7 lines at most
|
/* It seems that Windows XP displays 7 lines at most
|
||||||
and otherwise displays a vertical scroll bar */
|
and otherwise displays a vertical scroll bar */
|
||||||
SetWindowPos(ac->hwndListBox, HWND_TOP,
|
SetWindowPos(ac->hwndListBox, HWND_TOP,
|
||||||
r.left, r.bottom + 1, r.right - r.left, min(height * 7, height*(cpt+1)),
|
r.left, r.bottom + 1, r.right - r.left, height * min(cpt + 1, 7),
|
||||||
SWP_SHOWWINDOW );
|
SWP_SHOWWINDOW );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user