summaryrefslogtreecommitdiffstats
path: root/commands.c
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2015-01-05 20:53:04 +0100
committerBert Münnich <ber.t@posteo.de>2015-01-05 20:53:04 +0100
commit47e6cd066902ec6e6295c6ae55245f8f4e53a56a (patch)
treebdcaf1436ff6f47bad2d35bcce6a788261309fd7 /commands.c
parent47af0dd7b5e154fb64d8b4d6c5302ba905055799 (diff)
downloadnsxiv-47e6cd066902ec6e6295c6ae55245f8f4e53a56a.tar.zst
Apply gamma value on thumbnails too; fixes issue #193
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/commands.c b/commands.c
index a7a028d..d916a09 100644
--- a/commands.c
+++ b/commands.c
@@ -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);