summaryrefslogtreecommitdiffstats
path: root/commands.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-09-04 13:29:17 +0200
committerBert <ber.t@gmx.com>2011-09-04 13:29:17 +0200
commit26eae8be966ab8e7ef940806077b56bbc7c191bc (patch)
tree054ff1f2f46ce23a3d32877db891d9f6448b4ffc /commands.c
parentd585b863548737f6e3815e204d4d01b206236ec2 (diff)
downloadnsxiv-26eae8be966ab8e7ef940806077b56bbc7c191bc.tar.zst
Made i(t)_toggle_alpha command work in thumbnail mode too
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/commands.c b/commands.c
index f8a6e81..2a791f6 100644
--- a/commands.c
+++ b/commands.c
@@ -327,13 +327,12 @@ int i_toggle_antialias(arg_t a) {
}
}
-int i_toggle_alpha(arg_t a) {
- if (mode == MODE_IMAGE) {
- img.alpha ^= 1;
- return 1;
- } else {
- return 0;
- }
+int it_toggle_alpha(arg_t a) {
+ img.alpha ^= 1;
+ tns.alpha = img.alpha;
+ if (mode == MODE_THUMB)
+ tns.dirty = 1;
+ return 1;
}
int it_open_with(arg_t a) {