LCD driver: fix garbage when a glyph extends off screen.

This commit is contained in:
Serge Vakulenko
2015-11-15 13:39:08 -08:00
parent abcfb06b0b
commit 2e716e099c

View File

@@ -327,6 +327,9 @@ static void nt35702_draw_glyph(const struct gpanel_font_t *font,
int h, w, c;
unsigned bitmask = 0;
if (x + width > _width || y + font->height > _height)
return;
if (background >= 0) {
/*
* Clear background.