diff options
author | Don Hejna <don.hejna@gmail.com> | 2016-11-28 05:36:23 +0100 |
---|---|---|
committer | Don Hejna <don.hejna@gmail.com> | 2016-11-28 05:36:23 +0100 |
commit | 27bbaab976e02d2458099de96ec71d14aa1ade8e (patch) | |
tree | da6373d93c95bafc431fa4adfd025312173f5fca /image.c | |
parent | 32b29e61c1cf1fead8ccc3400d751955de7d5715 (diff) | |
download | nsxiv-27bbaab976e02d2458099de96ec71d14aa1ade8e.tar.zst |
Support for DELAY as a floating point number including less than 1
second while maintaining backward compatibiitiy with integer
arguments.
Diffstat (limited to 'image.c')
-rw-r--r-- | image.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -74,8 +74,8 @@ void img_init(img_t *img, win_t *win) imlib_context_set_color_modifier(img->cmod); img->gamma = MIN(MAX(options->gamma, -GAMMA_RANGE), GAMMA_RANGE); - img->ss.on = options->slideshow > 0; - img->ss.delay = options->slideshow > 0 ? options->slideshow : SLIDESHOW_DELAY; + img->ss.on = options->slideshow > 0.0; + img->ss.delay = options->slideshow > 0.0 ? options->slideshow : SLIDESHOW_DELAY; } #if HAVE_LIBEXIF |