From: divverent Date: Tue, 26 Jan 2010 15:10:37 +0000 (+0000) Subject: fix a typo in FT2 font code X-Git-Tag: xonotic-v0.1.0preview~230^2~606 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c2f460a1456df64aec32d5f8cc097156adee619b;p=xonotic%2Fdarkplaces.git fix a typo in FT2 font code git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9863 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/ft2.c b/ft2.c index 70d576e1..f4d1ec97 100644 --- a/ft2.c +++ b/ft2.c @@ -665,7 +665,7 @@ void Font_Postprocess(ft2_font_t *fnt, unsigned char *imagedata, int pitch, int for(y = -*pad_t; y < h + *pad_b; ++y) for(x = -*pad_l; x < w + *pad_r; ++x) { - unsigned char outlinealpha = pp.buf[(x + pp.padding_l) + pp.bufpitch * (y + pp.padding_b)]; + unsigned char outlinealpha = pp.buf[(x + pp.padding_l) + pp.bufpitch * (y + pp.padding_t)]; if(outlinealpha > 0) { unsigned char oldalpha = imagedata[x * bpp + pitch * y + (bpp - 1)];