aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2022-09-10 15:30:40 +0200
committerNRK <nrk@disroot.org>2022-09-10 15:43:14 +0200
commite356add07c6246b8a27a5d193e2e89da4afee6ad (patch)
treeeff8e115ac3cdc079c3ce00b2e1fc95e0f8832c2
parent88a480c9388d698f123bf892f33197d7bd1cfb9b (diff)
downloadnsxiv-e356add07c6246b8a27a5d193e2e89da4afee6ad.tar.zst
rename: aa -> anti_alias
-rw-r--r--image.c8
-rw-r--r--nsxiv.h4
-rw-r--r--options.c4
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;
}
}