Correct out-of-range gamma values given on command line
This commit is contained in:
parent
50f9ad14de
commit
ac2a6ff040
1 changed files with 1 additions and 1 deletions
2
image.c
2
image.c
|
@ -85,7 +85,7 @@ void img_init(img_t *img, win_t *win)
|
|||
img->multi.animate = false;
|
||||
|
||||
img->cmod = imlib_create_color_modifier();
|
||||
img->gamma = options->gamma;
|
||||
img->gamma = MIN(MAX(options->gamma, -GAMMA_RANGE), GAMMA_RANGE);
|
||||
}
|
||||
|
||||
void exif_auto_orientate(const fileinfo_t *file)
|
||||
|
|
Loading…
Add table
Reference in a new issue