brackets ftw. opacity for rgba's works.
This commit is contained in:
parent
5e98d8a452
commit
28ad33fd5f
2 changed files with 2 additions and 2 deletions
|
@ -424,7 +424,7 @@ static void popup_render(ObFocusCyclePopup *p, const ObClient *c)
|
||||||
p->a_icon->texture[0].data.rgba.height = icon->height;
|
p->a_icon->texture[0].data.rgba.height = icon->height;
|
||||||
if (target->client->iconic)
|
if (target->client->iconic)
|
||||||
/* 7/16 alpha */
|
/* 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
|
else
|
||||||
p->a_icon->texture[0].data.rgba.alpha = 0xff;
|
p->a_icon->texture[0].data.rgba.alpha = 0xff;
|
||||||
p->a_icon->texture[0].data.rgba.data = icon->data;
|
p->a_icon->texture[0].data.rgba.data = icon->data;
|
||||||
|
|
|
@ -153,7 +153,7 @@ void RrImageDraw(RrPixel32 *target, RrTextureRGBA *rgba,
|
||||||
guchar alpha, r, g, b, bgr, bgg, bgb;
|
guchar alpha, r, g, b, bgr, bgg, bgb;
|
||||||
|
|
||||||
/* apply the rgba's opacity as well */
|
/* apply the rgba's opacity as well */
|
||||||
alpha = ((*source >> RrDefaultAlphaOffset) * rgba->alpha >> 8) & 0xff;
|
alpha = (((*source >> RrDefaultAlphaOffset) * rgba->alpha) >> 8)&0xff;
|
||||||
r = *source >> RrDefaultRedOffset;
|
r = *source >> RrDefaultRedOffset;
|
||||||
g = *source >> RrDefaultGreenOffset;
|
g = *source >> RrDefaultGreenOffset;
|
||||||
b = *source >> RrDefaultBlueOffset;
|
b = *source >> RrDefaultBlueOffset;
|
||||||
|
|
Loading…
Reference in a new issue