[PATCH] Made checkFTB wrapable (needed by cubereflex plugin).

Dennis Kasprzyk onestone at opencompositing.org
Tue Jun 12 09:07:41 PDT 2007


---
 include/cube.h |    6 ++++++
 plugins/cube.c |    3 ++-
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/include/cube.h b/include/cube.h
index a8baf1f..c360a73 100644
--- a/include/cube.h
+++ b/include/cube.h
@@ -75,6 +75,11 @@ typedef void (*CubePaintTopBottomProc) (CompScreen		*s,
 					CompOutput		*output,
 					int			size);
 
+typedef Bool (*CubeCheckFTBProc) (CompScreen              *s,
+				  const ScreenPaintAttrib *sAttrib,
+				  const CompTransform     *transform,
+				  CompOutput              *output);
+
 typedef enum _PaintOrder
 {
     BTF = 0,
@@ -103,6 +108,7 @@ typedef struct _CubeScreen {
     CubeGetRotationProc	      getRotation;
     CubeClearTargetOutputProc clearTargetOutput;
     CubePaintTopBottomProc    paintTopBottom;
+    CubeCheckFTBProc          checkFTB;
 
     CompOption opt[CUBE_SCREEN_OPTION_NUM];
 
diff --git a/plugins/cube.c b/plugins/cube.c
index ae3bf31..2376760 100644
--- a/plugins/cube.c
+++ b/plugins/cube.c
@@ -996,7 +996,7 @@ cubeMoveViewportAndPaint (CompScreen		  *s,
 
     CUBE_SCREEN (s);
 
-    ftb = cubeCheckFTB (s, sAttrib, transform, outputPtr);
+    ftb = cs->checkFTB (s, sAttrib, transform, outputPtr);
 
     if ((paintOrder == FTB && !ftb) ||
         (paintOrder == BTF && ftb))
@@ -1983,6 +1983,7 @@ cubeInitScreen (CompPlugin *p,
     cs->getRotation	  = cubeGetRotation;
     cs->clearTargetOutput = cubeClearTargetOutput;
     cs->paintTopBottom    = cubePaintTopBottom;
+    cs->checkFTB          = cubeCheckFTB;
 
     s->privates[cd->screenPrivateIndex].ptr = cs;
 
-- 
1.5.0.5-dirty


--Boundary_(ID_Nqj58tVM3+zjT3js1Mf8TQ)
Content-type: text/x-diff; charset=windows-1252;
 name=0007-Separated-paintTopBottom-into-individual-paintTop-an.patch
Content-transfer-encoding: 7BIT
Content-disposition: attachment;
 filename=0007-Separated-paintTopBottom-into-individual-paintTop-an.patch



More information about the compiz mailing list