mirror of
https://github.com/NoelFB/blah.git
synced 2024-11-25 16:18:57 +08:00
RectI::overlap_rect fix
This commit is contained in:
parent
c6b5e98deb
commit
9e8a181fd2
|
@ -92,7 +92,7 @@ bool RectI::overlaps(const RectI& other) const
|
||||||
|
|
||||||
RectI RectI::overlap_rect(const Rect& against) const
|
RectI RectI::overlap_rect(const Rect& against) const
|
||||||
{
|
{
|
||||||
RectI result(0, 0, 0, 0);
|
RectI result = *this;
|
||||||
|
|
||||||
if (x + w >= against.x && x < against.x + against.w)
|
if (x + w >= against.x && x < against.x + against.w)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user