mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:37:44 +00:00
LibTTF: Propagate glyph bitmap allocation failure in rasterizer
This commit is contained in:
parent
7b3a4f8281
commit
d8f435fa50
1 changed files with 2 additions and 0 deletions
|
@ -208,6 +208,8 @@ void Rasterizer::draw_path(Gfx::Path& path)
|
|||
RefPtr<Gfx::Bitmap> Rasterizer::accumulate()
|
||||
{
|
||||
auto bitmap = Gfx::Bitmap::create(Gfx::BitmapFormat::BGRA8888, m_size);
|
||||
if (!bitmap)
|
||||
return {};
|
||||
Color base_color = Color::from_rgb(0xffffff);
|
||||
for (int y = 0; y < m_size.height(); y++) {
|
||||
float accumulator = 0.0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue