mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:47:34 +00:00
WindowServer+DisplaySettings: Remove the weird "simple" wallpaper mode
Painting the wallpaper at 100% scale in the top left corner is a weird mode and I don't think we need it. :^)
This commit is contained in:
parent
3046b3467c
commit
93ef661914
4 changed files with 9 additions and 17 deletions
|
@ -104,9 +104,7 @@ void MonitorWidget::redraw_desktop_if_needed()
|
|||
auto scaled_size = m_wallpaper_bitmap->size().to_type<float>().scaled_by(sw, sh).to_type<int>();
|
||||
auto scaled_bitmap = m_wallpaper_bitmap->scaled(sw, sh);
|
||||
|
||||
if (m_desktop_wallpaper_mode == "simple") {
|
||||
painter.blit({}, *scaled_bitmap, scaled_bitmap->rect());
|
||||
} else if (m_desktop_wallpaper_mode == "center") {
|
||||
if (m_desktop_wallpaper_mode == "center") {
|
||||
Gfx::IntRect centered_rect { {}, scaled_size };
|
||||
centered_rect.center_within(m_desktop_bitmap->rect());
|
||||
painter.blit(centered_rect.location(), *scaled_bitmap, scaled_bitmap->rect());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue