mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
PixelPaint: Remove try_
prefix from fallible Image methods
This commit is contained in:
parent
9c08bb9555
commit
39f1a6eb6f
Notes:
sideshowbarker
2024-07-17 08:59:18 +09:00
Author: https://github.com/linusg
Commit: 39f1a6eb6f
Pull-request: https://github.com/SerenityOS/serenity/pull/17222
6 changed files with 31 additions and 31 deletions
|
@ -36,7 +36,7 @@ ErrorOr<void> VectorscopeWidget::rebuild_vectorscope_data()
|
|||
|
||||
m_vectorscope_data.fill({});
|
||||
VERIFY(AK::abs(m_vectorscope_data[0][0]) < 0.01f);
|
||||
auto full_bitmap = TRY(m_image->try_compose_bitmap(Gfx::BitmapFormat::BGRA8888));
|
||||
auto full_bitmap = TRY(m_image->compose_bitmap(Gfx::BitmapFormat::BGRA8888));
|
||||
|
||||
for (size_t x = 0; x < static_cast<size_t>(full_bitmap->width()); ++x) {
|
||||
for (size_t y = 0; y < static_cast<size_t>(full_bitmap->height()); ++y) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue