summaryrefslogtreecommitdiffstats
path: root/image.c
diff options
context:
space:
mode:
authorDon Hejna <don.hejna@gmail.com>2016-11-28 05:36:23 +0100
committerDon Hejna <don.hejna@gmail.com>2016-11-28 05:36:23 +0100
commit27bbaab976e02d2458099de96ec71d14aa1ade8e (patch)
treeda6373d93c95bafc431fa4adfd025312173f5fca /image.c
parent32b29e61c1cf1fead8ccc3400d751955de7d5715 (diff)
downloadnsxiv-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.c4
1 files changed, 2 insertions, 2 deletions
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