Merge pull request #3465 from bparker06/glyph_fix

fix glyph rendering of long messagebox strings
This commit is contained in:
Andrés 2016-08-29 01:27:42 -05:00 committed by GitHub
commit d63585dcb1

View File

@ -299,7 +299,7 @@ static void gl_raster_font_render_line(
{
int off_x, off_y, tex_x, tex_y, width, height;
const struct font_glyph *glyph =
font->font_driver->get_glyph(font->font_data, utf8_walk(&msg));
font->font_driver->get_glyph(font->font_data, msg[i]);
if (!glyph) /* Do something smarter here ... */
glyph = font->font_driver->get_glyph(font->font_data, '?');