nsxivd2ec67e
Fixed issue #32: wrong antialias setting after it_shell_cmd
+2 −2
2 files changed
| @@ -1,4 +1,4 @@ | |||
| 1 | − | VERSION = git-20111113 | |
| 1 | + | VERSION = git-20111217 | |
| 2 | 2 | ||
| 3 | 3 | CC = gcc | |
| 4 | 4 | CFLAGS = -ansi -Wall -pedantic -O2 | |
| @@ -309,7 +309,6 @@ bool img_load(img_t *img, const fileinfo_t *file) { | |||
| 309 | 309 | ||
| 310 | 310 | imlib_context_set_image(img->im); | |
| 311 | 311 | imlib_image_set_changes_on_disk(); | |
| 312 | − | imlib_context_set_anti_alias(img->aa); | |
| 313 | 312 | ||
| 314 | 313 | if ((fmt = imlib_image_format()) == NULL) { | |
| 315 | 314 | warn("could not open image: %s", file->name); | |
| @@ -473,6 +472,7 @@ void img_render(img_t *img) { | |||
| 473 | 472 | win_clear(win); | |
| 474 | 473 | ||
| 475 | 474 | imlib_context_set_image(img->im); | |
| 475 | + | imlib_context_set_anti_alias(img->aa); | |
| 476 | 476 | ||
| 477 | 477 | if (!img->alpha && imlib_image_has_alpha()) | |
| 478 | 478 | win_draw_rect(win, win->pm, dx, dy, dw, dh, True, 0, win->white); | |