summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/cube.c
diff options
context:
space:
mode:
authoronestone <onestone@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-23 17:34:08 +0000
committeronestone <onestone@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-23 17:34:08 +0000
commit8f954c2a70edefd22e05aea2ce8fa8d7b00beb29 (patch)
tree88ce3d95084340acf3b605591a3a4771e83c4ff1 /beryl-plugins/src/cube.c
parentea48e4521af485435714a7ebab70f514f61741ff (diff)
downloadmarex-dev-8f954c2a70edefd22e05aea2ce8fa8d7b00beb29.tar.gz
marex-dev-8f954c2a70edefd22e05aea2ce8fa8d7b00beb29.tar.bz2
beryl-plugins: cube: calculate face position without input zoom
git-svn-id: file:///beryl/trunk@3048 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/cube.c')
-rw-r--r--beryl-plugins/src/cube.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/beryl-plugins/src/cube.c b/beryl-plugins/src/cube.c
index 567c0bf..805bd10 100644
--- a/beryl-plugins/src/cube.c
+++ b/beryl-plugins/src/cube.c
@@ -1669,15 +1669,18 @@ paintReversed(CompScreen * s,
const ScreenPaintAttrib * sA,
int output, int xMove, CubeFacePaint * face)
{
+ CUBE_SCREEN(s);
+
float pm[16];
float mvm[16];
float mvp[16];
glPushMatrix(); //Get the matrices.
-
+ // inputzoom should not scale here
+ cs->paintingCaps = TRUE;
(s->applyScreenTransform) (s, sA, output);
prepareXCoords(s, output, -sA->zTranslate);
-
+ cs->paintingCaps = FALSE;
glGetFloatv(GL_MODELVIEW_MATRIX, mvm);
glGetFloatv(GL_PROJECTION_MATRIX, pm);