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

This commit is contained in:
Geoffrey D. Bennett
2024-03-24 22:40:11 +10:30
parent f00de1bd25
commit 0fae084ccb
+2
View File
@@ -68,6 +68,8 @@ static void gain_updated(
} else { } else {
if (value < 0) if (value < 0)
p += sprintf(p, "−"); p += sprintf(p, "−");
else if (value > 0)
p += sprintf(p, "+");
if (data->scale < 1) if (data->scale < 1)
p += sprintf(p, "%.1f", fabs(value)); p += sprintf(p, "%.1f", fabs(value));
else else