Date: | 2013-02-01 04:42:29 (10 years 8 months ago) |
---|---|
Author: | Werner Almesberger |
Commit: | 60b375135fa863d00c8cb33fc8ef94f7a97b97f8 |
Message: | ubb-la/gui.c (si_text): used fixed %7.3f format if we have 7
characters The variable number of digits was more confusing than useful. A drawback is we may no longer see single-sample time changes when near the end of the buffer. |
Files: |
ubb-la/gui.c (1 diff) |
Change Details
ubb-la/gui.c | ||
---|---|---|
397 | 397 | textf(x, y, TEXT_RGBA, "%3d", (int) (v+0.5)); |
398 | 398 | else if (v >= 100 && digits == 4) |
399 | 399 | textf(x, y, TEXT_RGBA, "%4d", (int) (v+0.5)); |
400 | else if (digits == 7) | |
401 | textf(x, y, TEXT_RGBA, "%*.*f", digits, 3, v); | |
400 | 402 | else if (v >= 100) |
401 | 403 | textf(x, y, TEXT_RGBA, "%*.*f", digits, digits-4, v); |
402 | 404 | else if (v >= 10) |
Branches:
master