7/16 opacity! heh

This commit is contained in:
Dana Jansens 2007-05-28 03:02:54 +00:00
parent 451fb42cd0
commit 78c80b68dc

View file

@ -431,10 +431,10 @@ static void popup_render(ObFocusCyclePopup *p, const ObClient *c)
s = icon->data; s = icon->data;
d = icon_data; d = icon_data;
for (i = 0; i < icon->width * icon->height; ++i, ++d, ++s) { for (i = 0; i < icon->width * icon->height; ++i, ++d, ++s) {
/* 3/8 opacity */ /* 7/16 opacity */
gint a = ((*s >> RrDefaultAlphaOffset) & 0xff); gint a = ((*s >> RrDefaultAlphaOffset) & 0xff);
*d = *s - (a << RrDefaultAlphaOffset) + *d = *s - (a << RrDefaultAlphaOffset) +
(((a>>2) + (a>>3)) << RrDefaultAlphaOffset); (((a>>2) + (a>>3) + (a>>4)) << RrDefaultAlphaOffset);
} }
} else } else