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 /config.def.h | |
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 'config.def.h')
-rw-r--r-- | config.def.h | 10 |
1 files changed, 5 insertions, 5 deletions
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 |