From: divverent Date: Fri, 29 Oct 2010 14:25:45 +0000 (+0000) Subject: fix one issue with textshadow moving oddly around in an unknown situation X-Git-Tag: xonotic-v0.1.0preview~56^2~53 X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=3e25fc54c098745485178c9ce1c9013615c00cdf;p=xonotic%2Fdarkplaces.git 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 --- diff --git a/gl_draw.c b/gl_draw.c index ec9392de..24eb6faf 100644 --- a/gl_draw.c +++ b/gl_draw.c @@ -1637,7 +1637,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) @@ -1769,6 +1769,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;