summaryrefslogtreecommitdiff
path: root/Userland/Applications/Piano/RollWidget.cpp
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2023-01-20 20:06:05 +0100
committerLinus Groh <mail@linusgroh.de>2023-01-26 20:24:37 +0000
commit82a152b69602de05a28034864185545207639a8c (patch)
tree308eb816ef76a6579934786822d39f186bad385b /Userland/Applications/Piano/RollWidget.cpp
parent1971bff31455306b6976fe7e69db851c94a30794 (diff)
downloadserenity-82a152b69602de05a28034864185545207639a8c.zip
LibGfx: Remove `try_` prefix from bitmap creation functions
Those don't have any non-try counterpart, so we might as well just omit it.
Diffstat (limited to 'Userland/Applications/Piano/RollWidget.cpp')
-rw-r--r--Userland/Applications/Piano/RollWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/Piano/RollWidget.cpp b/Userland/Applications/Piano/RollWidget.cpp
index 25043abe66..91eabadb8b 100644
--- a/Userland/Applications/Piano/RollWidget.cpp
+++ b/Userland/Applications/Piano/RollWidget.cpp
@@ -70,7 +70,7 @@ void RollWidget::paint_event(GUI::PaintEvent& event)
// Draw the background, if necessary.
if (viewport_changed() || paint_area != m_background->height()) {
- m_background = Gfx::Bitmap::try_create(Gfx::BitmapFormat::BGRx8888, Gfx::IntSize(m_roll_width, paint_area)).release_value_but_fixme_should_propagate_errors();
+ m_background = Gfx::Bitmap::create(Gfx::BitmapFormat::BGRx8888, Gfx::IntSize(m_roll_width, paint_area)).release_value_but_fixme_should_propagate_errors();
Gfx::Painter background_painter(*m_background);
background_painter.translate(frame_thickness(), frame_thickness());