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
Notes: sideshowbarker 2024-07-18 23:50:41 +09:00
3 changed files with 3 additions and 3 deletions

View file

@ -31,7 +31,7 @@ Crosshair=/res/cursors/crosshair.png
DoubleClickSpeed=250
[Background]
Mode=scaled
Mode=stretch
[Applet]
Order=Clock,Network,ClipboardHistory,Audio,CPUGraph,MemoryGraph,UserName

View file

@ -85,7 +85,7 @@ void DisplaySettingsWidget::create_wallpaper_list()
m_modes.append("simple");
m_modes.append("tile");
m_modes.append("center");
m_modes.append("scaled");
m_modes.append("stretch");
}
void DisplaySettingsWidget::create_frame()

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();