]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Try to fix a warning motorsep gets
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 27 Jan 2010 05:23:20 +0000 (05:23 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 27 Jan 2010 05:23:20 +0000 (05:23 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9870 d7cf8633-e32d-0410-b094-e92efae38249

ft2.c

diff --git a/ft2.c b/ft2.c
index f96322ca63290a52a33f5329d125225fba7433f6..29ddf9240ae0e03d6879026a49417e7f28c5d856 100644 (file)
--- a/ft2.c
+++ b/ft2.c
@@ -529,13 +529,10 @@ static qboolean Font_LoadFile(const char *name, int _face, ft2_settings_t *setti
 
 void Font_Postprocess_Update(ft2_font_t *fnt, int bpp, int w, int h)
 {
-       qboolean need_gauss = false, need_circle = false;
        int needed, x, y;
        float gausstable[2*POSTPROCESS_MAXRADIUS+1];
-       if(!pp.buf || pp.blur != fnt->settings->blur || pp.shadowz != fnt->settings->shadowz)
-               need_gauss = true;
-       if(!pp.buf || pp.outline != fnt->settings->outline || pp.shadowx != fnt->settings->shadowx || pp.shadowy != fnt->settings->shadowy)
-               need_circle = true;
+       qboolean need_gauss  = (!pp.buf || pp.blur != fnt->settings->blur || pp.shadowz != fnt->settings->shadowz);
+       qboolean need_circle = (!pp.buf || pp.outline != fnt->settings->outline || pp.shadowx != fnt->settings->shadowx || pp.shadowy != fnt->settings->shadowy);
        pp.blur = fnt->settings->blur;
        pp.outline = fnt->settings->outline;
        pp.shadowx = fnt->settings->shadowx;