nsxive356add
rename: aa -> anti_alias
+8 −8
3 files changed
| @@ -80,7 +80,7 @@ void img_init(img_t *img, win_t *win) | |||
| 80 | 80 | img->zoom = MIN(img->zoom, ZOOM_MAX); | |
| 81 | 81 | img->checkpan = false; | |
| 82 | 82 | img->dirty = false; | |
| 83 | − | img->aa = options->aa; | |
| 83 | + | img->anti_alias = options->anti_alias; | |
| 84 | 84 | img->alpha = ALPHA_LAYER; | |
| 85 | 85 | img->multi.cap = img->multi.cnt = 0; | |
| 86 | 86 | img->multi.animate = options->animate; | |
| @@ -603,7 +603,7 @@ void img_render(img_t *img) | |||
| 603 | 603 | win_clear(win); | |
| 604 | 604 | ||
| 605 | 605 | imlib_context_set_image(img->im); | |
| 606 | − | imlib_context_set_anti_alias(img->aa); | |
| 606 | + | imlib_context_set_anti_alias(img->anti_alias); | |
| 607 | 607 | imlib_context_set_drawable(win->buf.pm); | |
| 608 | 608 | ||
| 609 | 609 | /* manual blending, for performance reasons. | |
| @@ -844,9 +844,9 @@ void img_flip(img_t *img, flipdir_t d) | |||
| 844 | 844 | ||
| 845 | 845 | void img_toggle_antialias(img_t *img) | |
| 846 | 846 | { | |
| 847 | − | img->aa = !img->aa; | |
| 847 | + | img->anti_alias = !img->anti_alias; | |
| 848 | 848 | imlib_context_set_image(img->im); | |
| 849 | − | imlib_context_set_anti_alias(img->aa); | |
| 849 | + | imlib_context_set_anti_alias(img->anti_alias); | |
| 850 | 850 | img->dirty = true; | |
| 851 | 851 | } | |
| 852 | 852 | ||
| @@ -187,7 +187,7 @@ struct img { | |||
| 187 | 187 | ||
| 188 | 188 | bool checkpan; | |
| 189 | 189 | bool dirty; | |
| 190 | − | bool aa; | |
| 190 | + | bool anti_alias; | |
| 191 | 191 | bool alpha; | |
| 192 | 192 | ||
| 193 | 193 | struct { | |
| @@ -237,7 +237,7 @@ struct opt { | |||
| 237 | 237 | scalemode_t scalemode; | |
| 238 | 238 | float zoom; | |
| 239 | 239 | bool animate; | |
| 240 | − | bool aa; | |
| 240 | + | bool anti_alias; | |
| 241 | 241 | int gamma; | |
| 242 | 242 | int slideshow; | |
| 243 | 243 | int framerate; | |
| @@ -113,7 +113,7 @@ void parse_options(int argc, char **argv) | |||
| 113 | 113 | ||
| 114 | 114 | _options.scalemode = SCALE_DOWN; | |
| 115 | 115 | _options.zoom = 1.0; | |
| 116 | − | _options.aa = ANTI_ALIAS; | |
| 116 | + | _options.anti_alias = ANTI_ALIAS; | |
| 117 | 117 | _options.animate = false; | |
| 118 | 118 | _options.gamma = 0; | |
| 119 | 119 | _options.slideshow = 0; | |
| @@ -244,7 +244,7 @@ void parse_options(int argc, char **argv) | |||
| 244 | 244 | case OPT_AA: | |
| 245 | 245 | if (op.optarg != NULL && !STREQ(op.optarg, "no")) | |
| 246 | 246 | 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; | |
| 248 | 248 | break; | |
| 249 | 249 | } | |
| 250 | 250 | } | |