summaryrefslogtreecommitdiffstats
path: root/commands.c
diff options
context:
space:
mode:
authorBert Münnich <be.muennich@gmail.com>2013-08-22 12:59:05 +0200
committerBert Münnich <be.muennich@gmail.com>2013-08-22 12:59:05 +0200
commit26a624a543f2e723550996d76d90ccbb7b954aeb (patch)
tree8799c977b965656ccea3c9ec14c7ba00f0204a0f /commands.c
parentfb6e4bdd980f72082a264894c12ed7e0650a5bf9 (diff)
downloadnsxiv-26a624a543f2e723550996d76d90ccbb7b954aeb.tar.zst
Added options for anti-alias & alpha layer coloring to config.def.h
Also removed now obsolete -p command line option; fixes issue #98
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/commands.c b/commands.c
index 501a938..09ba926 100644
--- a/commands.c
+++ b/commands.c
@@ -74,8 +74,10 @@ bool it_quit(arg_t a)
bool it_switch_mode(arg_t a)
{
if (mode == MODE_IMAGE) {
- if (tns.thumbs == NULL)
+ if (tns.thumbs == NULL) {
tns_init(&tns, filecnt, &win);
+ tns.alpha = img.alpha;
+ }
img_close(&img, false);
reset_timeout(reset_cursor);
tns.sel = fileidx;