Krolyxon
Commit e356add

Branches

Refs →

nsxive356add

rename: aa -> anti_alias

Author
NRK
Date
2022-09-10 19:30 +0600
Committer
NRK · 2022-09-10 19:43 +0600
Parent
88a480c
Commit
e356add07c6246b8a27a5d193e2e89da4afee6ad

+8 −8

3 files changed

  1. M image.c +4 −4
  2. M nsxiv.h +2 −2
  3. M options.c +2 −2
M image.c View
@@ -80,7 +80,7 @@ void img_init(img_t *img, win_t *win)
8080 img->zoom = MIN(img->zoom, ZOOM_MAX);
8181 img->checkpan = false;
8282 img->dirty = false;
83− img->aa = options->aa;
83+ img->anti_alias = options->anti_alias;
8484 img->alpha = ALPHA_LAYER;
8585 img->multi.cap = img->multi.cnt = 0;
8686 img->multi.animate = options->animate;
@@ -603,7 +603,7 @@ void img_render(img_t *img)
603603 win_clear(win);
604604
605605 imlib_context_set_image(img->im);
606− imlib_context_set_anti_alias(img->aa);
606+ imlib_context_set_anti_alias(img->anti_alias);
607607 imlib_context_set_drawable(win->buf.pm);
608608
609609 /* manual blending, for performance reasons.
@@ -844,9 +844,9 @@ void img_flip(img_t *img, flipdir_t d)
844844
845845 void img_toggle_antialias(img_t *img)
846846 {
847− img->aa = !img->aa;
847+ img->anti_alias = !img->anti_alias;
848848 imlib_context_set_image(img->im);
849− imlib_context_set_anti_alias(img->aa);
849+ imlib_context_set_anti_alias(img->anti_alias);
850850 img->dirty = true;
851851 }
852852
M nsxiv.h View
@@ -187,7 +187,7 @@ struct img {
187187
188188 bool checkpan;
189189 bool dirty;
190− bool aa;
190+ bool anti_alias;
191191 bool alpha;
192192
193193 struct {
@@ -237,7 +237,7 @@ struct opt {
237237 scalemode_t scalemode;
238238 float zoom;
239239 bool animate;
240− bool aa;
240+ bool anti_alias;
241241 int gamma;
242242 int slideshow;
243243 int framerate;
M options.c View
@@ -113,7 +113,7 @@ void parse_options(int argc, char **argv)
113113
114114 _options.scalemode = SCALE_DOWN;
115115 _options.zoom = 1.0;
116− _options.aa = ANTI_ALIAS;
116+ _options.anti_alias = ANTI_ALIAS;
117117 _options.animate = false;
118118 _options.gamma = 0;
119119 _options.slideshow = 0;
@@ -244,7 +244,7 @@ void parse_options(int argc, char **argv)
244244 case OPT_AA:
245245 if (op.optarg != NULL && !STREQ(op.optarg, "no"))
246246 error(EXIT_FAILURE, 0, "Invalid argument for option --anti-alias: %s", op.optarg);
247− _options.aa = op.optarg == NULL;
247+ _options.anti_alias = op.optarg == NULL;
248248 break;
249249 }
250250 }