1
Fork 0
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:
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

@ -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();