mirror of
https://github.com/ppy/osu
synced 2024-12-15 19:36:34 +00:00
Fix bounds check becoming false when using full area
This commit is contained in:
parent
382109c7a2
commit
2dc2cb04c3
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user