Forgotten changes

This commit is contained in:
piepie62 2019-03-27 17:41:13 -07:00
parent 54736b9c3c
commit 74a7753f29

View File

@ -51,8 +51,7 @@ int fontGlyphIndexFromCodePoint(CFNT_s* font, u32 codePoint)
int ret = font->finf.alterCharIndex; int ret = font->finf.alterCharIndex;
if (codePoint < 0x10000) if (codePoint < 0x10000)
{ {
CMAP_s* cmap; for (CMAP_s* cmap = font->finf.cmap; cmap; cmap = cmap->next)
for (cmap = font->finf.cmap; cmap; cmap = cmap->next)
{ {
if (codePoint < cmap->codeBegin || codePoint > cmap->codeEnd) if (codePoint < cmap->codeBegin || codePoint > cmap->codeEnd)
continue; continue;
@ -90,8 +89,7 @@ charWidthInfo_s* fontGetCharWidthInfo(CFNT_s* font, int glyphIndex)
if (!font) if (!font)
return NULL; return NULL;
charWidthInfo_s* info = NULL; charWidthInfo_s* info = NULL;
CWDH_s* cwdh; for (CWDH_s* cwdh = font->finf.cwdh; cwdh && !info; cwdh = cwdh->next)
for (cwdh = font->finf.cwdh; cwdh && !info; cwdh = cwdh->next)
{ {
if (glyphIndex < cwdh->startIndex || glyphIndex > cwdh->endIndex) if (glyphIndex < cwdh->startIndex || glyphIndex > cwdh->endIndex)
continue; continue;