summaryrefslogtreecommitdiffstats
path: root/commands.c
diff options
context:
space:
mode:
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) {