mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge #2869
2869: Fix MouseInside to only select one field (fixes #2868) r=Jupeyy a=def- Co-authored-by: def <dennis@felsin9.de>
This commit is contained in:
commit
04ea24b4f8
|
@ -49,7 +49,7 @@ int CUI::Update(float Mx, float My, float Mwx, float Mwy, int Buttons)
|
|||
|
||||
int CUI::MouseInside(const CUIRect *r)
|
||||
{
|
||||
if(m_MouseX >= r->x && m_MouseX <= r->x+r->w && m_MouseY >= r->y && m_MouseY <= r->y+r->h)
|
||||
if(m_MouseX >= r->x && m_MouseX < r->x + r->w && m_MouseY >= r->y && m_MouseY < r->y + r->h)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue