change gamma on -G

Closes: https://github.com/nsxiv/nsxiv/issues/30
This commit is contained in:
NRK 2021-09-12 16:54:41 +06:00 committed by Berke Kocaoğlu
parent ca692ac485
commit 91d9b3128e

View File

@ -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;