diff options
Diffstat (limited to 'Userland/Libraries/LibTTF/Glyf.cpp')
-rw-r--r-- | Userland/Libraries/LibTTF/Glyf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibTTF/Glyf.cpp b/Userland/Libraries/LibTTF/Glyf.cpp index 9ec8e6f586..cfc60eb7f5 100644 --- a/Userland/Libraries/LibTTF/Glyf.cpp +++ b/Userland/Libraries/LibTTF/Glyf.cpp @@ -207,7 +207,7 @@ void Rasterizer::draw_path(Gfx::Path& path) RefPtr<Gfx::Bitmap> Rasterizer::accumulate() { - auto bitmap = Gfx::Bitmap::create(Gfx::BitmapFormat::BGRA8888, m_size); + auto bitmap = Gfx::Bitmap::try_create(Gfx::BitmapFormat::BGRA8888, m_size); if (!bitmap) return {}; Color base_color = Color::from_rgb(0xffffff); |