mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Improve argument names of CUIRect::Inside
This commit is contained in:
parent
b50309dd5c
commit
49164dfcdf
|
@ -162,7 +162,7 @@ void CUIRect::HMargin(float Cut, CUIRect *pOtherRect) const
|
|||
pOtherRect->h = r.h - 2 * Cut;
|
||||
}
|
||||
|
||||
bool CUIRect::Inside(float x_, float y_) const
|
||||
bool CUIRect::Inside(float PointX, float PointY) const
|
||||
{
|
||||
return x_ >= this->x && x_ < this->x + this->w && y_ >= this->y && y_ < this->y + this->h;
|
||||
return PointX >= x && PointX < x + w && PointY >= y && PointY < y + h;
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@ public:
|
|||
*/
|
||||
void HMargin(float Cut, CUIRect *pOtherRect) const;
|
||||
|
||||
bool Inside(float x_, float y_) const;
|
||||
bool Inside(float PointX, float PointY) const;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue