1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:58:12 +00:00

SharedGraphics: Draw an error glyph instead of crashing due to missing glyphs.

This commit is contained in:
Andreas Kling 2019-01-23 08:07:58 +01:00
parent af06d5edc1
commit 7a7fc37ca1
5 changed files with 28 additions and 1 deletions

View file

@ -22,6 +22,7 @@ Font::Font(const char* const* glyphs, byte glyph_width, byte glyph_height, byte
, m_first_glyph(first_glyph)
, m_last_glyph(last_glyph)
{
m_error_bitmap = CharacterBitmap::create_from_ascii(Peanut8x10::error_glyph, m_glyph_width, m_glyph_height);
}
Font::~Font()