Mercurial > hg > dmlib
changeset 1967:8a98d1517460
Fix glyph index saving .. sigh.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 30 Jun 2018 06:26:51 +0300 |
parents | 934cc71c97eb |
children | 868e39741d26 |
files | tools/fontconv.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/fontconv.c Sat Jun 30 06:20:47 2018 +0300 +++ b/tools/fontconv.c Sat Jun 30 06:26:51 2018 +0300 @@ -218,7 +218,7 @@ for (int index = 0; index < font->maxglyph; index++) { DMBitmapGlyph *glyph = &font->glyphMap[index]; - if (glyph->index < font->maxglyph) + if (glyph->index >= 0) { Uint8 *pixels = font->glyphs->pixels + font->gsize * glyph->index;