summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/thumbnail.c
diff options
context:
space:
mode:
authormarex <marex@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-25 17:05:06 +0000
committermarex <marex@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-25 17:05:06 +0000
commitf8365cfb2951cf480749fbea49a7680674a766e6 (patch)
tree9646ebd64497f9946ad6a3f3d416a6cb6616302e /beryl-plugins/src/thumbnail.c
parentb095e068fad5ecdc31f0199148e0c5450ad87f11 (diff)
downloadmarex-dev-f8365cfb2951cf480749fbea49a7680674a766e6.tar.gz
marex-dev-f8365cfb2951cf480749fbea49a7680674a766e6.tar.bz2
thumbnail: Added fade for the text texture..
git-svn-id: file:///beryl/trunk@3136 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/thumbnail.c')
-rw-r--r--beryl-plugins/src/thumbnail.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/beryl-plugins/src/thumbnail.c b/beryl-plugins/src/thumbnail.c
index 929287c..ba8b54f 100644
--- a/beryl-plugins/src/thumbnail.c
+++ b/beryl-plugins/src/thumbnail.c
@@ -1129,6 +1129,9 @@ thumbPaintThumb(CompScreen *s,Thumbnail *t)
if (t->textPixmap)
{
+ glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
+ glColor4f(1.0,1.0,1.0,t->opacity);
+
enableTexture(s, &t->textTexture,COMP_TEXTURE_FILTER_GOOD);
CompMatrix *m = &t->textTexture.matrix;
@@ -1154,7 +1157,7 @@ thumbPaintThumb(CompScreen *s,Thumbnail *t)
glEnd();
disableTexture(s, &t->textTexture);
-
+ glColor4usv(defaultColor);
}
glDisable(GL_BLEND);