mirror of
https://github.com/ppy/osu
synced 2025-04-01 22:48:33 +00: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 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…
Reference in New Issue
Block a user