1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:37:35 +00:00

DisplaySettings: Show bilinear filtered wallpaper in MonitorWidget

After 7b10c8048c, this is probably more correct.
This commit is contained in:
Jelle Raaijmakers 2023-04-27 21:10:31 +02:00 committed by Sam Atkins
parent c7f651d526
commit cc35bab143

View file

@ -140,7 +140,7 @@ void MonitorWidget::redraw_desktop_if_needed()
} else if (m_desktop_wallpaper_mode == "Tile"sv) {
painter.draw_tiled_bitmap(m_desktop_bitmap->rect(), *scaled_bitmap);
} else if (m_desktop_wallpaper_mode == "Stretch"sv) {
painter.draw_scaled_bitmap(m_desktop_bitmap->rect(), *m_wallpaper_bitmap, m_wallpaper_bitmap->rect());
painter.draw_scaled_bitmap(m_desktop_bitmap->rect(), *m_wallpaper_bitmap, m_wallpaper_bitmap->rect(), 1.f, Gfx::Painter::ScalingMode::BilinearBlend);
} else {
VERIFY_NOT_REACHED();
}