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 --- config.def.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 198c696..a0935f6 100644 --- a/config.def.h +++ b/config.def.h @@ -45,11 +45,6 @@ static const double CONTRAST_MAX = 4.0; /* command i_scroll pans image 1/PAN_FRACTION of screen width/height */ static const int PAN_FRACTION = 5; -/* if true, use a checkerboard background for alpha layer, - * toggled with 'A' key binding - */ -static const bool ALPHA_LAYER = false; - /* percentage of memory to use for imlib2's cache size. * 3 means use 3% of total memory which is about 245MiB on 8GiB machine. * 0 or less means disable cache. @@ -70,6 +65,11 @@ static const int CACHE_SIZE_FALLBACK = 32 * 1024 * 1024; /* fallback to 32MiB if */ static const bool ANTI_ALIAS = true; +/* if true, use a checkerboard background for alpha layer, + * toggled with 'A' key binding (overwritten via `--alpha-layer` option) + */ +static const bool ALPHA_LAYER = false; + #endif #ifdef INCLUDE_THUMBS_CONFIG -- cgit v1.2.3-54-g00ecf