From 26eae8be966ab8e7ef940806077b56bbc7c191bc Mon Sep 17 00:00:00 2001 From: Bert Date: Sun, 4 Sep 2011 13:29:17 +0200 Subject: Made i(t)_toggle_alpha command work in thumbnail mode too --- commands.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'commands.c') 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) { -- cgit v1.2.3