mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-04 01:12:56 +00:00
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.
This commit is contained in:
parent
6acf03d9a8
commit
7b10c8048c
Notes:
sideshowbarker
2024-07-17 07:43:44 +09:00
Author: https://github.com/gmta
Commit: 7b10c8048c
Pull-request: https://github.com/SerenityOS/serenity/pull/18513
Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue