1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:12:54 +08:00

fix(SegmentedGraph): solve issue for negatives values

This commit is contained in:
tsrk 2023-01-11 14:03:36 +01:00
parent e128b9ee5c
commit 6249322a32
No known key found for this signature in database
GPG Key ID: EBD46BB3049B56D6

View File

@ -86,7 +86,7 @@ namespace osu.Game.Graphics.UserInterface
if (min < 0)
{
for (int i = 0; i < floatValues.Length; i++)
floatValues[i] += min;
floatValues[i] += Math.Abs(min);
}
// Normalize values