]> de.git.xonotic.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)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 25 Jan 2010 13:51:19 +0000 (13:51 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9849 d7cf8633-e32d-0410-b094-e92efae38249

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)
                // 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
                {
                        // this is like mplayer subtitle rendering
                        // bbuffer, bitmap buffer: this is our font