mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:28:12 +00:00
SharedGraphics: Draw an error glyph instead of crashing due to missing glyphs.
This commit is contained in:
parent
af06d5edc1
commit
7a7fc37ca1
5 changed files with 28 additions and 1 deletions
|
@ -123,7 +123,7 @@ void Painter::draw_glyph(const Point& point, char ch, Color color)
|
|||
auto* bitmap = font().glyph_bitmap(ch);
|
||||
if (!bitmap) {
|
||||
dbgprintf("Font doesn't have 0x%b ('%c')\n", (byte)ch, ch);
|
||||
ASSERT_NOT_REACHED();
|
||||
bitmap = font().error_bitmap();
|
||||
}
|
||||
int x = point.x();
|
||||
int y = point.y();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue