diff --git a/ubb-la/gui.c b/ubb-la/gui.c index bb45ad8..4945a00 100644 --- a/ubb-la/gui.c +++ b/ubb-la/gui.c @@ -397,6 +397,8 @@ static void si_text(int x, int y, double v, const char *unit, int digits) textf(x, y, TEXT_RGBA, "%3d", (int) (v+0.5)); else if (v >= 100 && digits == 4) textf(x, y, TEXT_RGBA, "%4d", (int) (v+0.5)); + else if (digits == 7) + textf(x, y, TEXT_RGBA, "%*.*f", digits, 3, v); else if (v >= 100) textf(x, y, TEXT_RGBA, "%*.*f", digits, digits-4, v); else if (v >= 10)