Scintilla: Fixed char advance.

This commit is contained in:
Branimir Karadžić
2015-07-17 20:57:43 -07:00
parent a0b2250395
commit c7ea0a6a97

View File

@@ -217,12 +217,7 @@ public:
while (_len--)
{
int advance;
const ImFont::Glyph* glyph = imFont->FindGlyph( (unsigned short)*_str++);
advance = glyph->XAdvance;
position += advance;
position += imFont->GetCharAdvance( (unsigned short)*_str++);
*_positions++ = position;
}
}