From e356add07c6246b8a27a5d193e2e89da4afee6ad Mon Sep 17 00:00:00 2001 From: NRK Date: Sat, 10 Sep 2022 19:30:40 +0600 Subject: rename: aa -> anti_alias --- image.c | 8 ++++---- nsxiv.h | 4 ++-- options.c | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/image.c b/image.c index d8f0221..512a837 100644 --- a/image.c +++ b/image.c @@ -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 = options->aa; + img->anti_alias = options->anti_alias; img->alpha = ALPHA_LAYER; img->multi.cap = img->multi.cnt = 0; img->multi.animate = options->animate; @@ -603,7 +603,7 @@ void img_render(img_t *img) win_clear(win); imlib_context_set_image(img->im); - imlib_context_set_anti_alias(img->aa); + imlib_context_set_anti_alias(img->anti_alias); imlib_context_set_drawable(win->buf.pm); /* manual blending, for performance reasons. @@ -844,9 +844,9 @@ void img_flip(img_t *img, flipdir_t d) void img_toggle_antialias(img_t *img) { - img->aa = !img->aa; + img->anti_alias = !img->anti_alias; imlib_context_set_image(img->im); - imlib_context_set_anti_alias(img->aa); + imlib_context_set_anti_alias(img->anti_alias); img->dirty = true; } diff --git a/nsxiv.h b/nsxiv.h index 17a28b0..2dc1783 100644 --- a/nsxiv.h +++ b/nsxiv.h @@ -187,7 +187,7 @@ struct img { bool checkpan; bool dirty; - bool aa; + bool anti_alias; bool alpha; struct { @@ -237,7 +237,7 @@ struct opt { scalemode_t scalemode; float zoom; bool animate; - bool aa; + bool anti_alias; int gamma; int slideshow; int framerate; diff --git a/options.c b/options.c index bf9bb99..3999e98 100644 --- a/options.c +++ b/options.c @@ -113,7 +113,7 @@ void parse_options(int argc, char **argv) _options.scalemode = SCALE_DOWN; _options.zoom = 1.0; - _options.aa = ANTI_ALIAS; + _options.anti_alias = ANTI_ALIAS; _options.animate = false; _options.gamma = 0; _options.slideshow = 0; @@ -244,7 +244,7 @@ void parse_options(int argc, char **argv) case OPT_AA: if (op.optarg != NULL && !STREQ(op.optarg, "no")) error(EXIT_FAILURE, 0, "Invalid argument for option --anti-alias: %s", op.optarg); - _options.aa = op.optarg == NULL; + _options.anti_alias = op.optarg == NULL; break; } } -- cgit v1.2.3-54-g00ecf