mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 08:02:55 +08:00
Add arbitrary value to fix FP contains check failures
This commit is contained in:
parent
e8c20bdcb1
commit
6285dcd1a1
@ -158,8 +158,8 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
||||
|
||||
var usableSsdq = usableAreaContainer.ScreenSpaceDrawQuad;
|
||||
|
||||
bool isWithinBounds = tabletContainer.ScreenSpaceDrawQuad.Contains(usableSsdq.TopLeft) &&
|
||||
tabletContainer.ScreenSpaceDrawQuad.Contains(usableSsdq.BottomRight);
|
||||
bool isWithinBounds = tabletContainer.ScreenSpaceDrawQuad.Contains(usableSsdq.TopLeft + new Vector2(1)) &&
|
||||
tabletContainer.ScreenSpaceDrawQuad.Contains(usableSsdq.BottomRight - new Vector2(1));
|
||||
|
||||
usableFill.FadeColour(isWithinBounds ? colour.Blue : colour.RedLight, 100);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user