mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
address reviews
This commit is contained in:
@ -212,8 +212,9 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
||||
{
|
||||
base.Update();
|
||||
|
||||
if (tablet.Value?.Size is Vector2 size)
|
||||
{
|
||||
if (!(tablet.Value?.Size is Vector2 size))
|
||||
return;
|
||||
|
||||
float maxDimension = size.LengthFast;
|
||||
|
||||
float fitX = maxDimension / (DrawWidth - Padding.Left - Padding.Right);
|
||||
@ -224,5 +225,4 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
||||
tabletContainer.Scale = new Vector2(1 / adjust);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -342,8 +342,8 @@ namespace osu.Game.Overlays.Settings.Sections.Input
|
||||
|
||||
private float currentAspectRatio => sizeX.Value / sizeY.Value;
|
||||
|
||||
private static float getHeight(float width, float aspectRatio) => MathF.Round(width / aspectRatio);
|
||||
private static float getHeight(float width, float aspectRatio) => width / aspectRatio;
|
||||
|
||||
private static float getWidth(float height, float aspectRatio) => MathF.Round(height * aspectRatio);
|
||||
private static float getWidth(float height, float aspectRatio) => height * aspectRatio;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user