for (i = 0; i < f->n_elines; i++) {
el0 = f->elines[i];
+ el0->lines[0]->x1 -= mx;
+
for (m = 0; m + 3 < el0->n_pins; m += 2) {
c0 = f->components[el0->pins[m]];
}
}
- f->w += d;
- f->h += d;
-
- scf_loge("f->x: %d, y: %d, w: %d, h: %d\n", f->x, f->y, f->w, f->h);
-
for (i = 0; i < f->n_components; i++) {
c0 = f->components[i];
for (j = 0; j < c0->n_pins; j++) {
p0 = c0->pins[j];
+ p0->x -= mx;
+
cx += p0->x;
cy += p0->y;
}
c0->y = cy / c0->n_pins;
}
+ f->w -= mx;
+ f->w += d;
+ f->h += d;
+
+ scf_loge("f->x: %d, y: %d, w: %d, h: %d, mx: %d\n", f->x, f->y, f->w, f->h, mx);
+
return 0;
}