mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +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
Notes:
sideshowbarker
2024-07-18 23:50:41 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/699ba84bea7 Pull-request: https://github.com/SerenityOS/serenity/pull/4933
3 changed files with 3 additions and 3 deletions
|
@ -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