From 2889151510174e2a0c806cd036fa5be21850865e Mon Sep 17 00:00:00 2001 From: Bradley Bell Date: Sat, 13 Dec 2014 12:17:20 -0800 Subject: [PATCH] ignore underline code in opengl instead of eating the next char --- 2d/font.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/2d/font.c b/2d/font.c index ff72d584..1a51f4d0 100644 --- a/2d/font.c +++ b/2d/font.c @@ -1091,6 +1091,11 @@ int ogl_internal_string(int x, int y, char *s ) continue; } + if (*text_ptr == CC_UNDERLINE ) { + text_ptr++; + continue; + } + letter = (unsigned char)*text_ptr - FMINCHAR; get_char_width(text_ptr[0],text_ptr[1],&width,&spacing); -- 2.39.2