1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 15:52:54 +08:00

Fix slightly incorrect calculations

This commit is contained in:
Dean Herbert 2023-06-19 20:23:46 +09:00
parent 4314f9f46a
commit 84fc6e92db

View File

@ -65,14 +65,14 @@ namespace osu.Game.Screens.Edit.Compose.Components
for (int i = 0; i < requiredCircles; i++) for (int i = 0; i < requiredCircles; i++)
{ {
float diameter = (offset + (i + 1) * DistanceBetweenTicks) * 2;
const float thickness = 4; const float thickness = 4;
float diameter = (offset + (i + 1) * DistanceBetweenTicks + thickness / 2) * 2;
AddInternal(new Ring(ReferenceObject, GetColourForIndexFromPlacement(i)) AddInternal(new Ring(ReferenceObject, GetColourForIndexFromPlacement(i))
{ {
Position = StartPosition, Position = StartPosition,
Origin = Anchor.Centre, Origin = Anchor.Centre,
Size = new Vector2(diameter + thickness / 2), Size = new Vector2(diameter),
InnerRadius = thickness * 1f / diameter, InnerRadius = thickness * 1f / diameter,
}); });
} }