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

This commit is contained in:
Geoffrey D. Bennett
2024-03-24 22:34:31 +10:30
parent 7997e76b02
commit 382524bf01
+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