]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
only run the outline code if actually outlining :P
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 25 Jan 2010 13:51:19 +0000 (13:51 +0000)
committerRudolf Polzer <rpolzer@grawp.div0.qc.to>
Tue, 26 Jan 2010 21:07:18 +0000 (22:07 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9849 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=90f995e366f44806eed724459e0b6b219ffd1724

ft2.c

diff --git a/ft2.c b/ft2.c
index 775b9ea0c27082505089d0333f4723347c3b679c..92630a38c940f4dffaed828fc487dec6ef4d1bbf 100644 (file)
--- a/ft2.c
+++ b/ft2.c
@@ -595,7 +595,7 @@ void Font_Postprocess(unsigned char *imagedata, int pitch, int bpp, int w, int h
                // calculate gauss table
                
                // outline the font (RGBA only)
-               if(bpp == 4) // we can only do this in BGRA
+               if(bpp == 4 && (pp.outline > 0 || pp.blur > 0)) // we can only do this in BGRA
                {
                        // this is like mplayer subtitle rendering
                        // bbuffer, bitmap buffer: this is our font