diff options
author | NRK <nrk@disroot.org> | 2021-09-12 16:54:41 +0600 |
---|---|---|
committer | Berke Kocaoğlu <berke.kocaoglu@metu.edu.tr> | 2021-09-16 22:55:31 +0300 |
commit | 91d9b3128eb5502306f688e68c42e83b3020cb56 (patch) | |
tree | 63008a3a93e742b5fea2c8872f472fc35ba9e07b | |
parent | ca692ac4857bf696b75d8c06f8f75a099940cc59 (diff) |
change gamma on -G
Closes: https://github.com/nsxiv/nsxiv/issues/30
-rw-r--r-- | image.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |