diff options
author | Andreas Kling <kling@serenityos.org> | 2021-11-06 13:11:20 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-08 00:35:27 +0100 |
commit | 8262bbf624624136fa55bcc81c4bd2fd71408eb3 (patch) | |
tree | b7be09f6f37f6be785f8bcd3c53ded5f7447f3cf /Userland/Demos/WidgetGallery | |
parent | 5e41c70e835ce32ab353147df1d2aee3846a1eae (diff) | |
download | serenity-8262bbf624624136fa55bcc81c4bd2fd71408eb3.zip |
LibGfx: Use ErrorOr<T> for Bitmap::cropped()
Diffstat (limited to 'Userland/Demos/WidgetGallery')
-rw-r--r-- | Userland/Demos/WidgetGallery/GalleryModels.h | 2 |
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)); } |