Krolyxon
Commit d2ec67e

Branches

Refs →

nsxivd2ec67e

Fixed issue #32: wrong antialias setting after it_shell_cmd

Author
Bert Münnich
Date
2011-12-17 16:36 +0100
Parent
ac4eb53
Commit
d2ec67e3311d0f20376f2de3e9b712e4adb0e878

+2 −2

2 files changed

  1. M Makefile +1 −1
  2. M image.c +1 −1
M Makefile View
@@ -1,4 +1,4 @@
1−VERSION = git-20111113
1+VERSION = git-20111217
22
33 CC = gcc
44 CFLAGS = -ansi -Wall -pedantic -O2
M image.c View
@@ -309,7 +309,6 @@ bool img_load(img_t *img, const fileinfo_t *file) {
309309
310310 imlib_context_set_image(img->im);
311311 imlib_image_set_changes_on_disk();
312− imlib_context_set_anti_alias(img->aa);
313312
314313 if ((fmt = imlib_image_format()) == NULL) {
315314 warn("could not open image: %s", file->name);
@@ -473,6 +472,7 @@ void img_render(img_t *img) {
473472 win_clear(win);
474473
475474 imlib_context_set_image(img->im);
475+ imlib_context_set_anti_alias(img->aa);
476476
477477 if (!img->alpha && imlib_image_has_alpha())
478478 win_draw_rect(win, win->pm, dx, dy, dw, dh, True, 0, win->white);