rename: aa -> anti_alias
This commit is contained in:
		
							
								
								
									
										8
									
								
								image.c
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								image.c
									
									
									
									
									
								
							| @@ -80,7 +80,7 @@ void img_init(img_t *img, win_t *win) | |||||||
| 	img->zoom = MIN(img->zoom, ZOOM_MAX); | 	img->zoom = MIN(img->zoom, ZOOM_MAX); | ||||||
| 	img->checkpan = false; | 	img->checkpan = false; | ||||||
| 	img->dirty = false; | 	img->dirty = false; | ||||||
| 	img->aa = options->aa; | 	img->anti_alias = options->anti_alias; | ||||||
| 	img->alpha = ALPHA_LAYER; | 	img->alpha = ALPHA_LAYER; | ||||||
| 	img->multi.cap = img->multi.cnt = 0; | 	img->multi.cap = img->multi.cnt = 0; | ||||||
| 	img->multi.animate = options->animate; | 	img->multi.animate = options->animate; | ||||||
| @@ -603,7 +603,7 @@ void img_render(img_t *img) | |||||||
| 	win_clear(win); | 	win_clear(win); | ||||||
|  |  | ||||||
| 	imlib_context_set_image(img->im); | 	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); | 	imlib_context_set_drawable(win->buf.pm); | ||||||
|  |  | ||||||
| 	/* manual blending, for performance reasons. | 	/* 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) | 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_image(img->im); | ||||||
| 	imlib_context_set_anti_alias(img->aa); | 	imlib_context_set_anti_alias(img->anti_alias); | ||||||
| 	img->dirty = true; | 	img->dirty = true; | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										4
									
								
								nsxiv.h
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								nsxiv.h
									
									
									
									
									
								
							| @@ -187,7 +187,7 @@ struct img { | |||||||
|  |  | ||||||
| 	bool checkpan; | 	bool checkpan; | ||||||
| 	bool dirty; | 	bool dirty; | ||||||
| 	bool aa; | 	bool anti_alias; | ||||||
| 	bool alpha; | 	bool alpha; | ||||||
|  |  | ||||||
| 	struct { | 	struct { | ||||||
| @@ -237,7 +237,7 @@ struct opt { | |||||||
| 	scalemode_t scalemode; | 	scalemode_t scalemode; | ||||||
| 	float zoom; | 	float zoom; | ||||||
| 	bool animate; | 	bool animate; | ||||||
| 	bool aa; | 	bool anti_alias; | ||||||
| 	int gamma; | 	int gamma; | ||||||
| 	int slideshow; | 	int slideshow; | ||||||
| 	int framerate; | 	int framerate; | ||||||
|   | |||||||
| @@ -113,7 +113,7 @@ void parse_options(int argc, char **argv) | |||||||
|  |  | ||||||
| 	_options.scalemode = SCALE_DOWN; | 	_options.scalemode = SCALE_DOWN; | ||||||
| 	_options.zoom = 1.0; | 	_options.zoom = 1.0; | ||||||
| 	_options.aa = ANTI_ALIAS; | 	_options.anti_alias = ANTI_ALIAS; | ||||||
| 	_options.animate = false; | 	_options.animate = false; | ||||||
| 	_options.gamma = 0; | 	_options.gamma = 0; | ||||||
| 	_options.slideshow = 0; | 	_options.slideshow = 0; | ||||||
| @@ -244,7 +244,7 @@ void parse_options(int argc, char **argv) | |||||||
| 		case OPT_AA: | 		case OPT_AA: | ||||||
| 			if (op.optarg != NULL && !STREQ(op.optarg, "no")) | 			if (op.optarg != NULL && !STREQ(op.optarg, "no")) | ||||||
| 				error(EXIT_FAILURE, 0, "Invalid argument for option --anti-alias: %s", op.optarg); | 				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; | 			break; | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user