]> Dogcows Code - chaz/openbox/commitdiff
micromicrooptimization
authorMikael Magnusson <mikachu@comhem.se>
Sat, 12 May 2007 16:56:36 +0000 (16:56 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Sat, 12 May 2007 16:56:36 +0000 (16:56 +0000)
render/theme.c

index 8051a3afdb8a98228d0de715da9dcc485bbd5c89..6635207f17a8c82cb938acb6fbd6fda820e2fb90 100644 (file)
@@ -1198,7 +1198,7 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name,
         RrMargins(theme->a_focused_label, &fl, &ft, &fr, &fb);
         RrMargins(theme->a_unfocused_label, &ul, &ut, &ur, &ub);
         theme->label_height = theme->win_font_height + MAX(ft + fb, ut + ub);
-        theme->label_height += theme->label_height % 2;
+        theme->label_height += theme->label_height & 1;
 
         /* this would be nice I think, since padding.width can now be 0,
            but it breaks frame.c horribly and I don't feel like fixing that
This page took 0.033846 seconds and 4 git commands to generate.