aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2021-09-12 16:54:41 +0600
committerBerke Kocaoğlu <berke.kocaoglu@metu.edu.tr>2021-09-16 22:55:31 +0300
commit91d9b3128eb5502306f688e68c42e83b3020cb56 (patch)
tree63008a3a93e742b5fea2c8872f472fc35ba9e07b
parentca692ac4857bf696b75d8c06f8f75a099940cc59 (diff)
change gamma on -G
Closes: https://github.com/nsxiv/nsxiv/issues/30
-rw-r--r--image.c2
1 files changed, 1 insertions, 1 deletions
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;