diff options
author | maniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3> | 2007-02-13 15:42:33 +0000 |
---|---|---|
committer | maniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3> | 2007-02-13 15:42:33 +0000 |
commit | e5d5eb908163666090e58ca0ed8ca74abd1af9ab (patch) | |
tree | 954c3bccedffd6e642c37443b55e39c8b94f1521 | |
parent | 3d317ff7bc72447da5b87cfa61e3b7f06d94c305 (diff) | |
download | marex-dev-e5d5eb908163666090e58ca0ed8ca74abd1af9ab.tar.gz marex-dev-e5d5eb908163666090e58ca0ed8ca74abd1af9ab.tar.bz2 |
group plugin: apply window brightness to glow
git-svn-id: file:///beryl/trunk@4031 d7aaf104-2d23-0410-ae22-9d23157bf5a3
-rw-r--r-- | beryl-plugins/src/group/paint.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/beryl-plugins/src/group/paint.c b/beryl-plugins/src/group/paint.c index 5e2aac4..87423b3 100644 --- a/beryl-plugins/src/group/paint.c +++ b/beryl-plugins/src/group/paint.c @@ -936,8 +936,10 @@ groupDrawWindow(CompWindow * w, glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); //glBlendFunc(GL_SRC_ALPHA, GL_ONE); - maybe add an option for that... glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); - glColor4us(gw->group->color[0], gw->group->color[1], - gw->group->color[2], attrib->opacity); + glColor4us(gw->group->color[0] * attrib->brightness / 0xffff, + gw->group->color[1] * attrib->brightness / 0xffff, + gw->group->color[2] * attrib->brightness / 0xffff, + attrib->opacity); /* we use PAINT_WINDOW_TRANSFORMED_MASK here to force the usage of a good texture filter */ |