[xiph-commits] r12278 - trunk/sushivision
xiphmont at svn.xiph.org
xiphmont at svn.xiph.org
Sun Dec 31 15:59:28 PST 2006
Author: xiphmont
Date: 2006-12-31 15:59:27 -0800 (Sun, 31 Dec 2006)
New Revision: 12278
Modified:
trunk/sushivision/panel-2d.c
Log:
Kill off some gratuitous, out of control pointer chasing.
Modified: trunk/sushivision/panel-2d.c
===================================================================
--- trunk/sushivision/panel-2d.c 2006-12-31 23:55:53 UTC (rev 12277)
+++ trunk/sushivision/panel-2d.c 2006-12-31 23:59:27 UTC (rev 12278)
@@ -602,9 +602,9 @@
for(i=0;i<p->dimensions;i++){
sushiv_dimension_t *d = p->dimension_list[i].d;
if(d == p2->x_d)
- x = p->private->dim_scales[i]->dl->d->val;
+ x = d->val;
if(d == p2->y_d)
- y = p->private->dim_scales[i]->dl->d->val;
+ y = d->val;
}
@@ -878,9 +878,9 @@
}
for(i=0;i<p->dimensions;i++){
- u->dim_vals[0][i] = p->private->dim_scales[i]->dl->d->bracket[0];
- u->dim_vals[1][i] = p->private->dim_scales[i]->dl->d->val;
- u->dim_vals[2][i] = p->private->dim_scales[i]->dl->d->bracket[1];
+ u->dim_vals[0][i] = p->dimension_list[i].d->bracket[0];
+ u->dim_vals[1][i] = p->dimension_list[i].d->val;
+ u->dim_vals[2][i] = p->dimension_list[i].d->bracket[1];
}
u->x_d = p2->x_dnum;
More information about the commits
mailing list