summaryrefslogtreecommitdiff
path: root/Userland/Demos/WidgetGallery
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-11-06 13:11:20 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-08 00:35:27 +0100
commit8262bbf624624136fa55bcc81c4bd2fd71408eb3 (patch)
treeb7be09f6f37f6be785f8bcd3c53ded5f7447f3cf /Userland/Demos/WidgetGallery
parent5e41c70e835ce32ab353147df1d2aee3846a1eae (diff)
downloadserenity-8262bbf624624136fa55bcc81c4bd2fd71408eb3.zip
LibGfx: Use ErrorOr<T> for Bitmap::cropped()
Diffstat (limited to 'Userland/Demos/WidgetGallery')
-rw-r--r--Userland/Demos/WidgetGallery/GalleryModels.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Demos/WidgetGallery/GalleryModels.h b/Userland/Demos/WidgetGallery/GalleryModels.h
index ad457d625a..119777f919 100644
--- a/Userland/Demos/WidgetGallery/GalleryModels.h
+++ b/Userland/Demos/WidgetGallery/GalleryModels.h
@@ -77,7 +77,7 @@ public:
auto cursor_bitmap_rect = cursor_bitmap->rect();
cursor.params = Gfx::CursorParams::parse_from_filename(cursor.name, cursor_bitmap_rect.center()).constrained(*cursor_bitmap);
- cursor.bitmap = cursor_bitmap->cropped(Gfx::IntRect(Gfx::FloatRect(cursor_bitmap_rect).scaled(1.0 / cursor.params.frames(), 1.0)));
+ cursor.bitmap = cursor_bitmap->cropped(Gfx::IntRect(Gfx::FloatRect(cursor_bitmap_rect).scaled(1.0 / cursor.params.frames(), 1.0))).release_value_but_fixme_should_propagate_errors();
m_cursors.append(move(cursor));
}