Ver código fonte

Fixed issue #32: wrong antialias setting after it_shell_cmd

master
Bert Münnich 13 anos atrás
pai
commit
d2ec67e331
2 arquivos alterados com 2 adições e 2 exclusões
  1. +1
    -1
      Makefile
  2. +1
    -1
      image.c

+ 1
- 1
Makefile Ver arquivo

@@ -1,4 +1,4 @@
VERSION = git-20111113
VERSION = git-20111217

CC = gcc
CFLAGS = -ansi -Wall -pedantic -O2


+ 1
- 1
image.c Ver arquivo

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


Carregando…
Cancelar
Salvar