summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/miniview.c
diff options
context:
space:
mode:
authorracarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-02-02 22:31:01 +0000
committerracarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-02-02 22:31:01 +0000
commit0d21afe3aa0c2752cb2c314c75a3cd8f0149b5c6 (patch)
tree297e448b3f31f65e2a40685c92edbd7ffc253007 /beryl-plugins/src/miniview.c
parent53d280198ef779c750f438dd3b9b64a74fd6abaa (diff)
downloadmarex-dev-0d21afe3aa0c2752cb2c314c75a3cd8f0149b5c6.tar.gz
marex-dev-0d21afe3aa0c2752cb2c314c75a3cd8f0149b5c6.tar.bz2
Expo mode stuff
git-svn-id: file:///beryl/trunk@3587 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/miniview.c')
-rw-r--r--beryl-plugins/src/miniview.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/beryl-plugins/src/miniview.c b/beryl-plugins/src/miniview.c
index ff0d009..0327aca 100644
--- a/beryl-plugins/src/miniview.c
+++ b/beryl-plugins/src/miniview.c
@@ -246,13 +246,15 @@ static void miniviewPaintTransformedScreen(CompScreen * s,
if (ms->expoMode)
{
//glClear(GL_COLOR_BUFFER_BIT);
+ int oldFilter = s->filter[SCREEN_TRANS_FILTER];
+ s->filter[SCREEN_TRANS_FILTER] = COMP_TEXTURE_FILTER_GOOD;
glPushMatrix();
int origView = s->x;
moveScreenViewport(s,-s->x,0,FALSE);
glScalef(1.0f,1.0f,(float)s->hsize/2.0f);
- glTranslatef(-1.0f,1.0,-0.8f);
+ glTranslatef(-1.10f,1.0,-0.8f);
glRotatef(10,0.0f,1.0f,-0.0f);
int i;
@@ -261,12 +263,11 @@ static void miniviewPaintTransformedScreen(CompScreen * s,
(*s->paintTransformedScreen) (s, sAttrib, region, output, mask);
glTranslatef(0.0f,-0.75f,0.0);
moveScreenViewport(s,1,0,FALSE);
- glTranslatef(0.0f,0.0f,0.2f/s->hsize);
}
while (s->x != origView)
moveScreenViewport(s,1,0,FALSE);
-
+ s->filter[SCREEN_TRANS_FILTER] = oldFilter;
glPopMatrix();
}
WRAP(ms, s, paintTransformedScreen, miniviewPaintTransformedScreen);