]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix a typo in FT2 font code
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 26 Jan 2010 15:10:37 +0000 (15:10 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 26 Jan 2010 15:10:37 +0000 (15:10 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9863 d7cf8633-e32d-0410-b094-e92efae38249

ft2.c

diff --git a/ft2.c b/ft2.c
index 70d576e1997b847cd3ee24fac244bd97682bee9e..f4d1ec9794c78d658461b19f1f09e7feb5d8a2e8 100644 (file)
--- 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)];