mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +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:
parent
56cad36ef2
commit
699ba84bea
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue