summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--anaglyph.c24
1 files changed, 19 insertions, 5 deletions
diff --git a/anaglyph.c b/anaglyph.c
index 38ee2a4..9f1ce46 100644
--- a/anaglyph.c
+++ b/anaglyph.c
@@ -1,10 +1,22 @@
/**
- * Compiz-plugin: anaglyph
- * Author: Patryk Kowalczyk <wodor@wodor.org>
- * created: September 2007
- * License: GPL
+ * Compiz Anaglyph plugin
*
- */
+ * anaglyph.c
+ * Copyright (c) 2007 Patryk Kowalczyk <wodor@wodor.org>
+ *
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * Author: Patryk Kowalczyk <wodor@wodor.org>
+ ** /
#include <stdio.h>
#include <stdlib.h>
@@ -215,6 +227,7 @@ static Bool anaglyphDrawWindow(CompWindow * w,
matrixTranslate (&sTransform, -offset*3.0, 0.0f, 0.0f);
else //other windows
matrixTranslate (&sTransform, -offset, 0.0f, 0.0f);
+
status = (*s->paintWindow) (w, &wa, &sTransform, region, mask);
//RED
@@ -237,6 +250,7 @@ static Bool anaglyphDrawWindow(CompWindow * w,
matrixTranslate (&sTransform, offset*3.0, 0.0f, 0.0f);
else //other windows
matrixTranslate (&sTransform, offset*2.0, 0.0f, 0.0f);
+
status = (*s->paintWindow) (w, &wa, &sTransform, region, mask);
WRAP(as, s, paintWindow, anaglyphDrawWindow);