Date:2013-02-01 04:42:29 (11 years 1 month 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
397397        textf(x, y, TEXT_RGBA, "%3d", (int) (v+0.5));
398398    else if (v >= 100 && digits == 4)
399399        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);
400402    else if (v >= 100)
401403        textf(x, y, TEXT_RGBA, "%*.*f", digits, digits-4, v);
402404    else if (v >= 10)

Archive Download the corresponding diff file

Branches:
master



interactive