all repos — openbox @ 28ad33fd5fccec49935bf94d25ee3cd5f2d3d9b9

openbox fork - make it a bit more like ryudo

brackets ftw. opacity for rgba's works.
Dana Jansens danakj@orodu.net
commit

28ad33fd5fccec49935bf94d25ee3cd5f2d3d9b9

parent

5e98d8a4523b41ff29adac675ec40f8e8699fcec

2 files changed, 2 insertions(+), 2 deletions(-)

jump to
M openbox/focus_cycle_popup.copenbox/focus_cycle_popup.c

@@ -424,7 +424,7 @@ p->a_icon->texture[0].data.rgba.width = icon->width;

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>>1) - (0xff>>4); else p->a_icon->texture[0].data.rgba.alpha = 0xff; p->a_icon->texture[0].data.rgba.data = icon->data;
M render/image.crender/image.c

@@ -153,7 +153,7 @@ while (num_pixels-- > 0) {

guchar alpha, r, g, b, bgr, bgg, bgb; /* apply the rgba's opacity as well */ - alpha = ((*source >> RrDefaultAlphaOffset) * rgba->alpha >> 8) & 0xff; + alpha = (((*source >> RrDefaultAlphaOffset) * rgba->alpha) >> 8)&0xff; r = *source >> RrDefaultRedOffset; g = *source >> RrDefaultGreenOffset; b = *source >> RrDefaultBlueOffset;