3/8 opacity for iconic windows
Dana Jansens danakj@orodu.net
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
openbox/focus_cycle_popup.c
→
openbox/focus_cycle_popup.c
@@ -431,10 +431,10 @@
s = icon->data; d = icon_data; for (i = 0; i < icon->width * icon->height; ++i, ++d, ++s) { - /* 50% opacity */ + /* 3/8 opacity */ gint a = ((*s >> RrDefaultAlphaOffset) & 0xff); *d = *s - (a << RrDefaultAlphaOffset) + - ((a>>1) << RrDefaultAlphaOffset); + (((a>>2) + (a>>3)) << RrDefaultAlphaOffset); } } else