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:
parent
e128b9ee5c
commit
6249322a32
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user