Merge pull request #4 from LemonBoy/master

Pulls 95c4138
This commit is contained in:
Krypt0n 2014-11-19 09:22:52 +01:00
commit 08d8549e29

2
bar.c
View File

@ -317,7 +317,7 @@ select_drawable_font (const uint16_t c)
*/
for (int i = 0; font_list[i] != NULL; i++) {
font_t *font = font_list[i];
if (c > font->char_min && c < font->char_max &&
if (c >= font->char_min && c <= font->char_max &&
font->width_lut[c - font->char_min].character_width != 0)
return font;
}