summaryrefslogtreecommitdiffstats
path: root/image.c
diff options
context:
space:
mode:
authorBert Münnich <ber.t@gmx.com>2011-12-17 16:36:21 +0100
committerBert Münnich <ber.t@gmx.com>2011-12-17 16:36:21 +0100
commitd2ec67e3311d0f20376f2de3e9b712e4adb0e878 (patch)
treea0b33d9a81139b4fa3d44ecb69fd874153502562 /image.c
parentac4eb5302943a4c086445fa5efd41ff66851505f (diff)
downloadnsxiv-d2ec67e3311d0f20376f2de3e9b712e4adb0e878.tar.zst
Fixed issue #32: wrong antialias setting after it_shell_cmd
Diffstat (limited to 'image.c')
-rw-r--r--image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/image.c b/image.c
index 65df889..619edfb 100644
--- a/image.c
+++ b/image.c
@@ -309,7 +309,6 @@ bool img_load(img_t *img, const fileinfo_t *file) {
imlib_context_set_image(img->im);
imlib_image_set_changes_on_disk();
- imlib_context_set_anti_alias(img->aa);
if ((fmt = imlib_image_format()) == NULL) {
warn("could not open image: %s", file->name);
@@ -473,6 +472,7 @@ void img_render(img_t *img) {
win_clear(win);
imlib_context_set_image(img->im);
+ imlib_context_set_anti_alias(img->aa);
if (!img->alpha && imlib_image_has_alpha())
win_draw_rect(win, win->pm, dx, dy, dw, dh, True, 0, win->white);