summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-28 03:02:54 +0000
committerDana Jansens <danakj@orodu.net>2007-05-28 03:02:54 +0000
commit78c80b68dc347b5cc44a4ba7a8e146ef1f8b33c9 (patch)
treefd02e2d2b5e2d7d1ab131f8d3f3fff65cb9c18cb
parent451fb42cd01d7ef1ea935f323f01d3f2214694a1 (diff)
7/16 opacity! heh
-rw-r--r--openbox/focus_cycle_popup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbox/focus_cycle_popup.c b/openbox/focus_cycle_popup.c
index b1a99e29..e7b6416c 100644
--- a/openbox/focus_cycle_popup.c
+++ b/openbox/focus_cycle_popup.c
@@ -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