From 7b10c8048cd1b6c6050aba2159e6a1f05c8e92f2 Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Tue, 25 Apr 2023 21:04:38 +0200 Subject: [PATCH] WindowServer: Draw stretched wallpapers with bilinear blending This improves the quality of stretched photos and artwork considerably, and I'd argue that this is what users will expect by default. --- Userland/Services/WindowServer/Compositor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Services/WindowServer/Compositor.cpp b/Userland/Services/WindowServer/Compositor.cpp index 7316d0fcc8..c39fad64b5 100644 --- a/Userland/Services/WindowServer/Compositor.cpp +++ b/Userland/Services/WindowServer/Compositor.cpp @@ -873,7 +873,7 @@ void Compositor::update_wallpaper_bitmap() auto bitmap = Gfx::Bitmap::create(Gfx::BitmapFormat::BGRx8888, screen.size(), screen.scale_factor()).release_value_but_fixme_should_propagate_errors(); Gfx::Painter painter(*bitmap); - painter.draw_scaled_bitmap(bitmap->rect(), *m_wallpaper, m_wallpaper->rect()); + painter.draw_scaled_bitmap(bitmap->rect(), *m_wallpaper, m_wallpaper->rect(), 1.f, Gfx::Painter::ScalingMode::BilinearBlend); screen_data.m_wallpaper_bitmap = move(bitmap); }