brackets ftw. opacity for rgba's works.
Dana Jansens danakj@orodu.net
2 files changed,
2 insertions(+),
2 deletions(-)
M
openbox/focus_cycle_popup.c
→
openbox/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.c
→
render/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;