rename: aa -> anti_alias

pull/361/head
NRK 2 years ago
parent 88a480c938
commit e356add07c

@ -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;
}

@ -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;

@ -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;
}
}

Loading…
Cancel
Save