]> Dogcows Code - chaz/openbox/commitdiff
7/16 opacity! heh
authorDana Jansens <danakj@orodu.net>
Mon, 28 May 2007 03:02:54 +0000 (03:02 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 28 May 2007 03:02:54 +0000 (03:02 +0000)
openbox/focus_cycle_popup.c

index b1a99e296a82d06a1bff8123f1eaa06f803c8c96..e7b6416c2991bd634c4865100277d30b855a016d 100644 (file)
@@ -431,10 +431,10 @@ static void popup_render(ObFocusCyclePopup *p, const ObClient *c)
                 s = icon->data;
                 d = icon_data;
                 for (i = 0; i < icon->width * icon->height; ++i, ++d, ++s) {
-                     /* 3/8 opacity */
+                     /* 7/16 opacity */
                     gint a = ((*s >> RrDefaultAlphaOffset) & 0xff);
                     *d = *s - (a << RrDefaultAlphaOffset) +
-                        (((a>>2) + (a>>3)) << RrDefaultAlphaOffset);
+                        (((a>>2) + (a>>3) + (a>>4)) << RrDefaultAlphaOffset);
                 }
                     
             } else
This page took 0.027696 seconds and 4 git commands to generate.