]> 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)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 29 Oct 2010 14:25:45 +0000 (14:25 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10564 d7cf8633-e32d-0410-b094-e92efae38249

gl_draw.c

index ec9392de31811c6d44a4ff74223bcdb0dc7c3ee2..24eb6faff3cb643c4008a48956746aa39093e5e4 100644 (file)
--- 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;