From: divverent Date: Wed, 27 Jan 2010 05:23:20 +0000 (+0000) Subject: Try to fix a warning motorsep gets X-Git-Tag: xonotic-v0.1.0preview~774 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=56b389a735d2c27532a43e92e517248844679c0b;p=xonotic%2Fdarkplaces.git Try to fix a warning motorsep gets git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9870 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=dd439095c2e8c5c706225e48d64eaaeee3ea8ddb --- diff --git a/ft2.c b/ft2.c index f96322ca..29ddf924 100644 --- 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;