summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/screenshot.c
diff options
context:
space:
mode:
authormaniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-11-19 12:29:51 +0000
committermaniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-11-19 12:29:51 +0000
commit4cdb83e6ef5dc8e7d6c29078c95a52db67eaddf8 (patch)
treef224e955318dd21030b7827dcd612f3bcfd9dca6 /beryl-plugins/src/screenshot.c
parentf676c2837a42b2308d7cd5658be42a5dd1a9684d (diff)
downloadmarex-dev-4cdb83e6ef5dc8e7d6c29078c95a52db67eaddf8.tar.gz
marex-dev-4cdb83e6ef5dc8e7d6c29078c95a52db67eaddf8.tar.bz2
screenshot plugin: fix multihead drawing
git-svn-id: file:///beryl/trunk@1293 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/screenshot.c')
-rw-r--r--beryl-plugins/src/screenshot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/beryl-plugins/src/screenshot.c b/beryl-plugins/src/screenshot.c
index fa95f96..4900069 100644
--- a/beryl-plugins/src/screenshot.c
+++ b/beryl-plugins/src/screenshot.c
@@ -202,9 +202,9 @@ shotPaintScreen (CompScreen * s,
if (ss->grabIndex)
{
glPushMatrix ();
- 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);
+
glDisableClientState (GL_TEXTURE_COORD_ARRAY);
glEnable (GL_BLEND);
glColor4us (0x2fff, 0x2fff, 0x4fff, 0x4fff);