Line widths should not receive scale factor

This commit is contained in:
smoogipoo 2020-04-21 17:15:06 +09:00
parent 0a2b585c65
commit a41ac50e2f
1 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ private void flushPendingLines()
switch (pair.Key)
{
case "ColumnLineWidth":
parseArrayValue(pair.Value, currentConfig.ColumnLineWidth);
parseArrayValue(pair.Value, currentConfig.ColumnLineWidth, false);
break;
case "ColumnSpacing":
@ -124,7 +124,7 @@ private void flushPendingLines()
pendingLines.Clear();
}
private void parseArrayValue(string value, float[] output)
private void parseArrayValue(string value, float[] output, bool applyScaleFactor = true)
{
string[] values = value.Split(',');
@ -133,7 +133,7 @@ private void parseArrayValue(string value, float[] output)
if (i >= output.Length)
break;
output[i] = float.Parse(values[i], CultureInfo.InvariantCulture) * LegacyManiaSkinConfiguration.POSITION_SCALE_FACTOR;
output[i] = float.Parse(values[i], CultureInfo.InvariantCulture) * (applyScaleFactor ? LegacyManiaSkinConfiguration.POSITION_SCALE_FACTOR : 1);
}
}
}