mirror of
https://github.com/ppy/osu.git
synced 2025-03-23 16:27:20 +08:00
use MathF
This commit is contained in:
parent
173f557376
commit
268011be9e
@ -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) => (float)Math.Round(width / aspectRatio);
|
||||
private static float getHeight(float width, float aspectRatio) => MathF.Round(width / aspectRatio);
|
||||
|
||||
private static float getWidth(float height, float aspectRatio) => (float)Math.Round(height * aspectRatio);
|
||||
private static float getWidth(float height, float aspectRatio) => MathF.Round(height * aspectRatio);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user