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;
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;