Fix bounds check becoming false when using full area

This commit is contained in:
Dean Herbert 2021-03-16 16:24:20 +09:00
parent 382109c7a2
commit 2dc2cb04c3

View File

@ -111,8 +111,8 @@ namespace osu.Game.Overlays.Settings.Sections.Input
{
Size areaExtent = areaOffset.Value + areaSize.Value;
bool isWithinBounds = areaExtent.Width < tabletSize.Value.Width
&& areaExtent.Height < tabletSize.Value.Height;
bool isWithinBounds = areaExtent.Width <= tabletSize.Value.Width
&& areaExtent.Height <= tabletSize.Value.Height;
usableAreaContainer.FadeColour(isWithinBounds ? colour.Blue : colour.RedLight, 100);
}