From 91d9b3128eb5502306f688e68c42e83b3020cb56 Mon Sep 17 00:00:00 2001 From: NRK Date: Sun, 12 Sep 2021 16:54:41 +0600 Subject: [PATCH] change gamma on -G Closes: https://github.com/nsxiv/nsxiv/issues/30 --- image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image.c b/image.c index 9d76d46..e4adc06 100644 --- a/image.c +++ b/image.c @@ -70,7 +70,7 @@ void img_init(img_t *img, win_t *win) img->cmod = imlib_create_color_modifier(); imlib_context_set_color_modifier(img->cmod); - img->gamma = MIN(MAX(options->gamma, -GAMMA_RANGE), GAMMA_RANGE); + img_change_gamma(img, options->gamma); img->ss.on = options->slideshow > 0; img->ss.delay = options->slideshow > 0 ? options->slideshow : SLIDESHOW_DELAY * 10;