summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <Sam@XPS-SUSE.site>2008-11-29 18:28:37 +0900
committerSam Spilsbury <Sam@XPS-SUSE.site>2008-11-29 18:28:37 +0900
commit310903eb134faf19574165f1421ec3cc69424030 (patch)
tree0dfdc30105e5d9dcec0bf8cf85a82fbde5d89f8c
parentd726c0ed32cce8582c3c164506723aa8f9600f3a (diff)
downloadwiimote-310903eb134faf19574165f1421ec3cc69424030.tar.gz
wiimote-310903eb134faf19574165f1421ec3cc69424030.tar.bz2
* Remove paintoutput
-rw-r--r--wiimote.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/wiimote.c b/wiimote.c
index d97f022..68f0a8f 100644
--- a/wiimote.c
+++ b/wiimote.c
@@ -26,37 +26,6 @@
static int corePrivateIndex;
/* Wrappable Functions --------------------------------------------------- */
-/* TODO: Remove. Doesn't actually _do_ anything ;-) (Wasted CPU Cycles) */
-
-static Bool
-wiimotePaintOutput (CompScreen *s,
- const ScreenPaintAttrib *sAttrib,
- const CompTransform *transform,
- Region region,
- CompOutput *output,
- unsigned int mask)
-{
- Bool status;
-
- WIIMOTE_SCREEN (s);
- CompTransform sTransform = *transform;
-
- mask |= PAINT_SCREEN_WITH_TRANSFORMED_WINDOWS_MASK;
-
- UNWRAP (as, s, paintOutput);
- status = (*s->paintOutput) (s, sAttrib, transform, region, output, mask);
- WRAP (as, s, paintOutput, wiimotePaintOutput);
-
- transformToScreenSpace (s, output, -DEFAULT_Z_CAMERA, &sTransform);
-
- glPushMatrix ();
- glLoadMatrixf (sTransform.m);
- glPopMatrix ();
-
- return status;
-}
-
-
static void
wiimoteDisplayOptionChanged (CompDisplay *d,
CompOption *opt,
@@ -225,8 +194,6 @@ wiimoteInitScreen (CompPlugin *p,
s->base.privates[ad->screenPrivateIndex].ptr = as;
- WRAP (as, s, paintOutput, wiimotePaintOutput);
-
return TRUE;
}
@@ -236,8 +203,6 @@ wiimoteFiniScreen (CompPlugin *p,
{
WIIMOTE_SCREEN (s);
- UNWRAP (as, s, paintOutput);
-
free (as);
}