From ea1ae05b4d86909552844d8c1343321f60d195c7 Mon Sep 17 00:00:00 2001 From: divverent Date: Fri, 29 Oct 2010 14:25:45 +0000 Subject: [PATCH] fix one issue with textshadow moving oddly around in an unknown situation git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10564 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=3e25fc54c098745485178c9ce1c9013615c00cdf --- gl_draw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gl_draw.c b/gl_draw.c index 05cbd15c..3f576952 100644 --- a/gl_draw.c +++ b/gl_draw.c @@ -1633,7 +1633,7 @@ float DrawQ_String_Scale(float startx, float starty, const char *text, size_t ma if (ch > 0xE000) ch -= 0xE000; if (ch > 0xFF) - continue; + goto out; if (fontmap) { if (map != ft2_oldstyle_map) @@ -1761,6 +1761,7 @@ float DrawQ_String_Scale(float startx, float starty, const char *text, size_t ma //prevmap = map; prevch = ch; } +out: if (shadow) { x -= 1.0/pix_x * r_textshadow.value; -- 2.39.2