diff options
author | NRK <nrk@disroot.org> | 2023-01-17 10:48:59 +0100 |
---|---|---|
committer | Gitea <gitea@fake.local> | 2023-01-28 11:23:11 +0100 |
commit | 1f788a318bedc0e6a83632c1f126e747c0430d6c (patch) | |
tree | 96c734a6977a4407f4c3105ca5c680595656c264 /image.c | |
parent | fddad757c6d2645ed7b2d8f64931818d5b3b7a00 (diff) | |
download | nsxiv-1f788a318bedc0e6a83632c1f126e747c0430d6c.tar.zst |
add cli flag --alpha-layer
now that we have long-opts, we don't have to worry about exhausting the
alphabet list for short-opts. so adding a cli flag to set/unset the
checker background makes sense.
ref: https://codeberg.org/nsxiv/nsxiv/issues/404
Diffstat (limited to 'image.c')
-rw-r--r-- | image.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -91,7 +91,7 @@ void img_init(img_t *img, win_t *win) img->checkpan = false; img->dirty = false; img->anti_alias = options->anti_alias; - img->alpha = ALPHA_LAYER; + img->alpha = options->alpha_layer; img->multi.cap = img->multi.cnt = 0; img->multi.animate = options->animate; img->multi.framedelay = options->framerate > 0 ? 1000 / options->framerate : 0; |