fixed incomplete replacement of unsigned short with ImWchar in interface of ImFont::FindGlyph

docking
Jason Wilkins 8 years ago committed by omar
parent 9886b09a0a
commit 022f8c2342

@ -2183,7 +2183,7 @@ void ImFont::AddRemapChar(ImWchar dst, ImWchar src, bool overwrite_dst)
IndexAdvanceX[dst] = (src < index_size) ? IndexAdvanceX.Data[src] : 1.0f; IndexAdvanceX[dst] = (src < index_size) ? IndexAdvanceX.Data[src] : 1.0f;
} }
const ImFontGlyph* ImFont::FindGlyph(unsigned short c) const const ImFontGlyph* ImFont::FindGlyph(ImWchar c) const
{ {
if (c < IndexLookup.Size) if (c < IndexLookup.Size)
{ {

Loading…
Cancel
Save