ImFont: Tweaking layout, shaving bit of alignment and simple hot/cot split

This commit is contained in:
ocornut
2016-04-23 11:29:42 +02:00
parent 44fb99542f
commit a20d69f9ce
2 changed files with 17 additions and 16 deletions

View File

@ -1725,7 +1725,7 @@ const ImFont::Glyph* ImFont::FindGlyph(unsigned short c) const
{
const int i = IndexLookup[c];
if (i != -1)
return &Glyphs[i];
return &Glyphs.Data[i];
}
return FallbackGlyph;
}