Display "+" before positive dB values in the gain widget

This commit is contained in:
Geoffrey D. Bennett
2024-03-11 18:12:30 +10:30
parent c2e49fe19a
commit 84ad8057ed

View File

@@ -68,6 +68,8 @@ static void gain_updated(
} else {
if (value < 0)
p += sprintf(p, "");
else if (value > 0)
p += sprintf(p, "+");
if (data->scale < 1)
p += sprintf(p, "%.1f", fabs(value));
else