aboutsummaryrefslogtreecommitdiffstats
path: root/image.c
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2023-01-17 10:48:59 +0100
committerGitea <gitea@fake.local>2023-01-28 11:23:11 +0100
commit1f788a318bedc0e6a83632c1f126e747c0430d6c (patch)
tree96c734a6977a4407f4c3105ca5c680595656c264 /image.c
parentfddad757c6d2645ed7b2d8f64931818d5b3b7a00 (diff)
downloadnsxiv-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/image.c b/image.c
index 56d409a..8ac7a27 100644
--- a/image.c
+++ b/image.c
@@ -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;