From 27bbaab976e02d2458099de96ec71d14aa1ade8e Mon Sep 17 00:00:00 2001 From: Don Hejna Date: Sun, 27 Nov 2016 20:36:23 -0800 Subject: Support for DELAY as a floating point number including less than 1 second while maintaining backward compatibiitiy with integer arguments. --- image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'image.c') diff --git a/image.c b/image.c index 801bbe5..b9de406 100644 --- a/image.c +++ b/image.c @@ -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 -- cgit v1.2.3-54-g00ecf