summaryrefslogtreecommitdiff
path: root/Userland/Applications/DisplaySettings
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-11-06 12:26:04 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-08 00:35:27 +0100
commit5e41c70e835ce32ab353147df1d2aee3846a1eae (patch)
treef15ac73e132256cf9f9efb1ab814ae2ec2daf14d /Userland/Applications/DisplaySettings
parentdb90b4554ec18e60c1435cc81d379a6afbd2a1fe (diff)
downloadserenity-5e41c70e835ce32ab353147df1d2aee3846a1eae.zip
LibGfx: Use ErrorOr<T> for Bitmap::scaled()
Diffstat (limited to 'Userland/Applications/DisplaySettings')
-rw-r--r--Userland/Applications/DisplaySettings/MonitorWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/DisplaySettings/MonitorWidget.cpp b/Userland/Applications/DisplaySettings/MonitorWidget.cpp
index 858a82df75..efdbccc5f9 100644
--- a/Userland/Applications/DisplaySettings/MonitorWidget.cpp
+++ b/Userland/Applications/DisplaySettings/MonitorWidget.cpp
@@ -123,7 +123,7 @@ void MonitorWidget::redraw_desktop_if_needed()
float sh = (float)m_desktop_bitmap->height() / (float)m_desktop_resolution.height();
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);
+ auto scaled_bitmap = m_wallpaper_bitmap->scaled(sw, sh).release_value_but_fixme_should_propagate_errors();
if (m_desktop_wallpaper_mode == "center") {
auto centered_rect = Gfx::IntRect({}, scaled_size).centered_within(m_desktop_bitmap->rect());