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 f00de1bd25
commit 0fae084ccb

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