From: havoc Date: Wed, 18 Apr 2007 07:00:49 +0000 (+0000) Subject: fix bug introduced in last patch that made all text print one character X-Git-Tag: xonotic-v0.1.0preview~3307 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1ead697dfb891a6115726839a9daa2ebe2ec6804;p=xonotic%2Fdarkplaces.git fix bug introduced in last patch that made all text print one character to the left git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7123 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_draw.c b/gl_draw.c index 164eebdd..2f9d94a4 100644 --- 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] == ' ')