mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:47:44 +00:00
LibGfx: Remove try_
prefix from bitmap creation functions
Those don't have any non-try counterpart, so we might as well just omit it.
This commit is contained in:
parent
1971bff314
commit
82a152b696
186 changed files with 598 additions and 598 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue