summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoi Cohen <roico@roico-desktop.(none)>2007-06-30 14:47:14 +0300
committerRoi Cohen <roico@roico-desktop.(none)>2007-06-30 14:47:14 +0300
commit7cb1746ade12fb62608b63bd240cce245e6d47bc (patch)
treee03195bcea5218d2f1466cf0cd4414aa558e6066
parentddc0152f9479e6395a3d8f5ad1d89de0e44542c8 (diff)
download3d-7cb1746ade12fb62608b63bd240cce245e6d47bc.tar.gz
3d-7cb1746ade12fb62608b63bd240cce245e6d47bc.tar.bz2
some small cleanup
-rw-r--r--3d.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/3d.c b/3d.c
index 9347a08..ffd054e 100644
--- a/3d.c
+++ b/3d.c
@@ -570,11 +570,11 @@ static void tdAddWindow(CompScreen *s, CompWindow *w)
if (!tds->first)
{
tds->first = tds->last = w;
+ return;
}
GET_TD_WINDOW(tds->last, tds)->next = w;
- if (tds->first != tds->last)
- tdw->prev = tds->last;
+ tdw->prev = tds->last;
tds->last = w;
}
@@ -591,19 +591,22 @@ tdPaintTransformedOutput(CompScreen * s,
CompWindow* w;
CompWindow* firstFTB = NULL;
- if (tds->active || tds->tdWindowExists)
+ if (tds->active || tds->tdWindowExists)
{
/* all non 3d windows first */
tds->first = NULL;
tds->last = NULL;
-
+
for (w = s->windows; w; w = w->next)
{
TD_WINDOW(w);
-
+
tdw->next = NULL;
tdw->prev = NULL;
+ }
+ for (w = s->windows; w; w = w->next)
+ {
if (!windowIs3D(w))
tdAddWindow (s, w);
}
@@ -618,8 +621,8 @@ tdPaintTransformedOutput(CompScreen * s,
continue;
float vPoints[3][3] = { { -0.5, 0.0, (cs->invert * cs->distance) + tdw->currentZ},
- { 0.0, 0.5, (cs->invert * cs->distance) + tdw->currentZ},
- { 0.0, 0.0, (cs->invert * cs->distance) + tdw->currentZ}};
+ { 0.0, 0.5, (cs->invert * cs->distance) + tdw->currentZ},
+ { 0.0, 0.0, (cs->invert * cs->distance) + tdw->currentZ}};
tdw->ftb = cs->checkOrientation (s, sAttrib, transform, output, vPoints);