From 8e9184b62e05e60b20fcaa7ed68714c226c24a40 Mon Sep 17 00:00:00 2001 From: Daniel van Vugt Date: Thu, 15 Nov 2018 15:39:34 +0800 Subject: [PATCH] background: Mipmap wallpaper when shrinking So as to minimize jaggies for wallpaper that is >= double the resolution of the screen. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/issues/254 --- src/compositor/meta-background.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/compositor/meta-background.c b/src/compositor/meta-background.c index 0fb20d569..4670409aa 100644 --- a/src/compositor/meta-background.c +++ b/src/compositor/meta-background.c @@ -629,6 +629,11 @@ create_pipeline (PipelineType type) cogl_pipeline_set_blend (templates[type], blend_strings[type], NULL); } + cogl_pipeline_set_layer_filters (templates[type], + 0, + COGL_PIPELINE_FILTER_LINEAR_MIPMAP_NEAREST, + COGL_PIPELINE_FILTER_LINEAR); + return cogl_pipeline_copy (templates[type]); }