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

DisplaySettings: Rename wallpaper setting "scaled" to "stretch"

I want to add a scale factor for picking pixel density, and using
the same terminology for wallpaper handling would be confusing.
This commit is contained in:
Nico Weber 2020-10-26 10:16:44 -04:00 committed by Andreas Kling
parent 56cad36ef2
commit 699ba84bea
3 changed files with 3 additions and 3 deletions

View file

@ -96,7 +96,7 @@ void MonitorWidget::paint_event(GUI::PaintEvent& event)
screen_painter.blit_offset(screen_rect.location(), *m_desktop_wallpaper_bitmap, screen_rect, offset);
} else if (m_desktop_wallpaper_mode == "tile") {
screen_painter.draw_tiled_bitmap(screen_bitmap->rect(), *m_desktop_wallpaper_bitmap);
} else if (m_desktop_wallpaper_mode == "scaled") {
} else if (m_desktop_wallpaper_mode == "stretch") {
screen_painter.draw_scaled_bitmap(screen_bitmap->rect(), *m_desktop_wallpaper_bitmap, m_desktop_wallpaper_bitmap->rect());
} else {
ASSERT_NOT_REACHED();