Support for DELAY as a floating point number including less than 1

second while maintaining backward compatibiitiy with integer
arguments.
This commit is contained in:
Don Hejna
2016-11-27 20:36:23 -08:00
parent 32b29e61c1
commit 27bbaab976
6 changed files with 12 additions and 11 deletions

2
main.c
View File

@ -372,7 +372,7 @@ void update_info(void)
} else {
bar_put(r, "%s", mark);
if (img.ss.on)
bar_put(r, "%ds | ", img.ss.delay);
bar_put(r, "%2.1fs | ", img.ss.delay);
if (img.gamma != 0)
bar_put(r, "G%+d | ", img.gamma);
bar_put(r, "%3d%% | ", (int) (img.zoom * 100.0));