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

This commit is contained in:
Geoffrey D. Bennett
2024-03-24 17:06:17 +10:30
parent c2e49fe19a
commit 84ad8057ed
+2
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