diff options
author | NRK <nrk@disroot.org> | 2022-08-17 16:54:14 +0200 |
---|---|---|
committer | NRK <nrk@disroot.org> | 2022-09-10 15:43:07 +0200 |
commit | 88a480c9388d698f123bf892f33197d7bd1cfb9b (patch) | |
tree | aa0e9e3075c0d3f8f71355e0fde9cfa7025b1e75 /image.c | |
parent | 7e3e6008fec8f7de8fa3c3545a76d5380ba48944 (diff) | |
download | nsxiv-88a480c9388d698f123bf892f33197d7bd1cfb9b.tar.zst |
allow disabling anti-aliasing via cli flag
simply running nsxiv with `--anti-alias` will enable anti-aliasing, and
running it with `--anti-alias=no` will disable it.
the cli flag will overwrite the config.h default.
Closes: https://codeberg.org/nsxiv/nsxiv/issues/349
Diffstat (limited to 'image.c')
-rw-r--r-- | image.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -80,7 +80,7 @@ void img_init(img_t *img, win_t *win) img->zoom = MIN(img->zoom, ZOOM_MAX); img->checkpan = false; img->dirty = false; - img->aa = ANTI_ALIAS; + img->aa = options->aa; img->alpha = ALPHA_LAYER; img->multi.cap = img->multi.cnt = 0; img->multi.animate = options->animate; |