瀏覽代碼

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.
Jelle Raaijmakers 2 年之前
父節點
當前提交
7b10c8048c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Userland/Services/WindowServer/Compositor.cpp

+ 1 - 1
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);
         }