]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix one issue with textshadow moving oddly around in an unknown situation
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 29 Oct 2010 14:25:45 +0000 (14:25 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 29 Oct 2010 14:32:34 +0000 (16:32 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10564 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=3e25fc54c098745485178c9ce1c9013615c00cdf

gl_draw.c

index 05cbd15ce9b08349865e5624356ffd7156aa0933..3f5769523595f40512020cff6b4d2d38c43ee7c6 100644 (file)
--- 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;