mirror of
https://github.com/osukey/osukey.git
synced 2025-05-17 03:27:21 +09:00
Fix off-by-one error in isQuadInBounds
This commit is contained in:
parent
877e19421b
commit
def0e5c42e
@ -242,8 +242,8 @@ namespace osu.Game.Rulesets.Osu.Edit
|
|||||||
|
|
||||||
private (bool X, bool Y) isQuadInBounds(Quad quad)
|
private (bool X, bool Y) isQuadInBounds(Quad quad)
|
||||||
{
|
{
|
||||||
bool xInBounds = (quad.TopLeft.X >= 0) && (quad.BottomRight.X < DrawWidth);
|
bool xInBounds = (quad.TopLeft.X >= 0) && (quad.BottomRight.X <= DrawWidth);
|
||||||
bool yInBounds = (quad.TopLeft.Y >= 0) && (quad.BottomRight.Y < DrawHeight);
|
bool yInBounds = (quad.TopLeft.Y >= 0) && (quad.BottomRight.Y <= DrawHeight);
|
||||||
|
|
||||||
return (xInBounds, yInBounds);
|
return (xInBounds, yInBounds);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user