From 1f788a318bedc0e6a83632c1f126e747c0430d6c Mon Sep 17 00:00:00 2001 From: NRK Date: Tue, 17 Jan 2023 15:48:59 +0600 Subject: 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 --- image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'image.c') 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; -- cgit v1.2.3-54-g00ecf