aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-10-01 20:02:26 +0200
committerDaniel Eklöf <daniel@ekloef.se>2020-10-01 20:02:26 +0200
commitc538b6384b4cd71b9c567e4982b53184f8f7a153 (patch)
tree02742acbcccda595ec8ff5b55f5459d4994608d6 /main.c
parent71b866904bc64ed7813ed1948ec3254deacdfeb5 (diff)
downloadwbg-c538b6384b4cd71b9c567e4982b53184f8f7a153.tar.gz
pixman: use ‘best’ filter when scaling image
Diffstat (limited to 'main.c')
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index 6f8192e..f52b8a9 100644
--- a/main.c
+++ b/main.c
@@ -97,6 +97,7 @@ render(struct output *output)
pixman_f_transform_init_scale(&t, sx, sy);
pixman_transform_from_pixman_f_transform(&t2, &t);
pixman_image_set_transform(pix, &t2);
+ pixman_image_set_filter(pix, PIXMAN_FILTER_BEST, NULL, 0);
pixman_image_composite32(
PIXMAN_OP_SRC,