diff options
author | Bert Münnich <ber.t@posteo.de> | 2015-01-05 20:53:04 +0100 |
---|---|---|
committer | Bert Münnich <ber.t@posteo.de> | 2015-01-05 20:53:04 +0100 |
commit | 47e6cd066902ec6e6295c6ae55245f8f4e53a56a (patch) | |
tree | bdcaf1436ff6f47bad2d35bcce6a788261309fd7 /commands.c | |
parent | 47af0dd7b5e154fb64d8b4d6c5302ba905055799 (diff) | |
download | nsxiv-47e6cd066902ec6e6295c6ae55245f8f4e53a56a.tar.zst |
Apply gamma value on thumbnails too; fixes issue #193
Diffstat (limited to 'commands.c')
-rw-r--r-- | commands.c | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -260,6 +260,17 @@ bool cg_navigate_marked(arg_t a) } } +bool cg_change_gamma(arg_t a) +{ + if (img_change_gamma(&img, (long) a * (prefix > 0 ? prefix : 1))) { + if (mode == MODE_THUMB) + tns.dirty = true; + return true; + } else { + return false; + } +} + bool ci_navigate(arg_t a) { long n = (long) a; @@ -419,11 +430,6 @@ bool ci_flip(arg_t a) return true; } -bool ci_change_gamma(arg_t a) -{ - return img_change_gamma(&img, (long) a); -} - bool ci_toggle_antialias(arg_t a) { img_toggle_antialias(&img); |