summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/miniview.c
diff options
context:
space:
mode:
authorracarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-02-02 22:45:50 +0000
committerracarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-02-02 22:45:50 +0000
commit440e6781adc87f127ff62186e8597498b95a888c (patch)
tree4e4043b5850a0609cd6624c738f06cc034a4bb9d /beryl-plugins/src/miniview.c
parent0d21afe3aa0c2752cb2c314c75a3cd8f0149b5c6 (diff)
downloadmarex-dev-440e6781adc87f127ff62186e8597498b95a888c.tar.gz
marex-dev-440e6781adc87f127ff62186e8597498b95a888c.tar.bz2
Go back to expo mode being tiled horizontal viewports on black background
git-svn-id: file:///beryl/trunk@3588 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 0327aca..25bc598 100644
--- a/beryl-plugins/src/miniview.c
+++ b/beryl-plugins/src/miniview.c
@@ -245,7 +245,7 @@ static void miniviewPaintTransformedScreen(CompScreen * s,
}
if (ms->expoMode)
{
- //glClear(GL_COLOR_BUFFER_BIT);
+ glClear(GL_COLOR_BUFFER_BIT);
int oldFilter = s->filter[SCREEN_TRANS_FILTER];
s->filter[SCREEN_TRANS_FILTER] = COMP_TEXTURE_FILTER_GOOD;
glPushMatrix();
@@ -254,14 +254,15 @@ static void miniviewPaintTransformedScreen(CompScreen * s,
glScalef(1.0f,1.0f,(float)s->hsize/2.0f);
- glTranslatef(-1.10f,1.0,-0.8f);
+ glTranslatef(-1.10f,0.0f,-0.8f);
glRotatef(10,0.0f,1.0f,-0.0f);
int i;
for (i = 0; i < s->hsize; i++)
{
(*s->paintTransformedScreen) (s, sAttrib, region, output, mask);
- glTranslatef(0.0f,-0.75f,0.0);
+ glTranslatef(0.75f,0.0f,0.0);
+ glTranslatef(0.0f,0.0f,0.1f);
moveScreenViewport(s,1,0,FALSE);
}