]> Dogcows Code - chaz/openbox/commitdiff
let gcc do the math. it should be compiler optimized away
authorDana Jansens <danakj@orodu.net>
Tue, 29 May 2007 03:37:01 +0000 (03:37 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 29 May 2007 03:37:01 +0000 (03:37 +0000)
openbox/focus_cycle_popup.c

index 0bfe9b6bd52d2fc0dd4b0aa86abd3f3c6388be2d..0ac274dd5f210a10db44370f214eaf1388a59e6f 100644 (file)
@@ -424,7 +424,7 @@ static void popup_render(ObFocusCyclePopup *p, const ObClient *c)
             p->a_icon->texture[0].data.rgba.height = icon->height;
             if (target->client->iconic)
                 /* 7/16 alpha */
-                p->a_icon->texture[0].data.rgba.alpha = (0xff>>1) - (0xff>>4);
+                p->a_icon->texture[0].data.rgba.alpha = 0xff*7/16;
             else
                 p->a_icon->texture[0].data.rgba.alpha = 0xff;
             p->a_icon->texture[0].data.rgba.data = icon->data;
This page took 0.027021 seconds and 4 git commands to generate.