]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix bug introduced in last patch that made all text print one character
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 18 Apr 2007 07:00:49 +0000 (07:00 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 18 Apr 2007 07:00:49 +0000 (07:00 +0000)
to the left

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7123 d7cf8633-e32d-0410-b094-e92efae38249

gl_draw.c

index 164eebdde647be6130efa63466537a931122c757..2f9d94a4513e2cf785df566344919824a31a2070 100644 (file)
--- a/gl_draw.c
+++ b/gl_draw.c
@@ -711,8 +711,6 @@ float DrawQ_String(float startx, float starty, const char *text, int maxlen, flo
                        x += r_textshadow.value;
                        y += r_textshadow.value;
                }
-               // because this loop increments x before it draws, we must bias x first
-               x -= w;
                for (i = 0;i < maxlen && text[i];i++, x += w)
                {
                        if (text[i] == ' ')