mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
fixed mistake in listbox code #1463
This commit is contained in:
parent
7ebcb77072
commit
7cd566b4ac
|
@ -871,7 +871,7 @@ CMenus::CListboxItem CMenus::UiDoListboxNextRow()
|
|||
if(Item.m_Rect.y+Item.m_Rect.h > gs_ListBoxOriginalView.y)
|
||||
{
|
||||
|
||||
if(Item.m_HitRect.y < Item.m_HitRect.y) // clip the selection
|
||||
if(Item.m_HitRect.y < gs_ListBoxOriginalView.y) // clip the selection
|
||||
{
|
||||
Item.m_HitRect.h -= gs_ListBoxOriginalView.y-Item.m_HitRect.y;
|
||||
Item.m_HitRect.y = gs_ListBoxOriginalView.y;
|
||||
|
|
Loading…
Reference in a new issue