From 0de33b3d6c3b61a960a8e0aca3a851b8896b7491 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 6 Nov 2021 19:30:59 +0100 Subject: LibGfx: Use ErrorOr for Bitmap::try_create() Another one that was used in a fajillion places. --- Userland/Applications/DisplaySettings/MonitorWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Applications/DisplaySettings') diff --git a/Userland/Applications/DisplaySettings/MonitorWidget.cpp b/Userland/Applications/DisplaySettings/MonitorWidget.cpp index dc958bee1d..e4ba1f6387 100644 --- a/Userland/Applications/DisplaySettings/MonitorWidget.cpp +++ b/Userland/Applications/DisplaySettings/MonitorWidget.cpp @@ -20,7 +20,7 @@ MonitorWidget::MonitorWidget() { m_desktop_resolution = GUI::Desktop::the().rect().size(); m_monitor_bitmap = Gfx::Bitmap::try_load_from_file("/res/graphics/monitor.png").release_value_but_fixme_should_propagate_errors(); - m_desktop_bitmap = Gfx::Bitmap::try_create(m_monitor_bitmap->format(), { 280, 158 }); + m_desktop_bitmap = Gfx::Bitmap::try_create(m_monitor_bitmap->format(), { 280, 158 }).release_value_but_fixme_should_propagate_errors(); m_monitor_rect = { { 12, 13 }, m_desktop_bitmap->size() }; set_fixed_size(304, 201); } -- cgit v1.2.3