1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-23 16:27:20 +08:00

use MathF

This commit is contained in:
Samaoo 2022-11-11 17:56:50 +01:00
parent 173f557376
commit 268011be9e

View File

@ -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);
}
}