summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/bench.c
diff options
context:
space:
mode:
authoronestone <onestone@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-11-14 06:59:53 +0000
committeronestone <onestone@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-11-14 06:59:53 +0000
commitaaa7a1ba4afd4060548a20cf4e0bc08aa234be0c (patch)
tree264bcd546765be08076004e6422d7b8b56f2322f /beryl-plugins/src/bench.c
parent77c9dbd36964b51ee95aba254013d654cc9a1141 (diff)
downloadmarex-dev-aaa7a1ba4afd4060548a20cf4e0bc08aa234be0c.tar.gz
marex-dev-aaa7a1ba4afd4060548a20cf4e0bc08aa234be0c.tar.bz2
beryl-plugins: bench: fixed multimonitor support
git-svn-id: file:///beryl/trunk@1178 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/bench.c')
-rw-r--r--beryl-plugins/src/bench.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/beryl-plugins/src/bench.c b/beryl-plugins/src/bench.c
index 872a172..52ab2bc 100644
--- a/beryl-plugins/src/bench.c
+++ b/beryl-plugins/src/bench.c
@@ -218,9 +218,7 @@ benchPaintScreen (CompScreen * s, const ScreenPaintAttrib * sa, Region region,
glPushMatrix ();
glLoadIdentity ();
- glTranslatef (-0.5f, -0.5f, -DEFAULT_Z_CAMERA);
- glScalef (1.0f / s->width, -1.0f / s->height, 1.0f);
- glTranslatef (0.0f, -s->height, 0.0f);
+ prepareXCoords (s, output, -DEFAULT_Z_CAMERA);
glEnable (GL_BLEND);
glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
@@ -486,7 +484,7 @@ benchFiniScreen (CompPlugin * p, CompScreen * s)
UNWRAP (bs, s, donePaintScreen);
//Free the pointer
free (bs);
-
+
}
static Bool
@@ -625,7 +623,7 @@ benchGetDisplayOptions (CompDisplay * display, int *count)
if (display)
{
BENCH_DISPLAY (display);
-
+
*count = NUM_OPTIONS (bd);
return bd->opt;
}