if (el2->id == ec->lid && 0 == el2->n_lines) {
+ int diff = 5 + rand() % 10;
+
+ bx += diff;
+ bw -= diff;
+
ret = __ses_layout_function(f, el2, pn, d, bx, by, bw, bh);
if (ret < 0)
return ret;
+ if (i == el->n_conns / 2) {
+ uint32_t tmp = el ->lines[0]->y0;
+ el ->lines[0]->y0 = el2->lines[0]->y0;
+ el2->lines[0]->y0 = tmp;
+
+ el ->lines[0]->y1 = el ->lines[0]->y0;
+ el2->lines[0]->y1 = el2->lines[0]->y0;
+ }
break;
}
}
int ret = __ses_layout_function(f, el, &n, d, bx, by, bw, bh);
if (ret < 0)
return ret;
+
+ int diff = 5 + rand() % 10;
+
+ bx += diff;
+ bw -= diff;
}
}
scf_logi("f->x: %d, f->y: %d, f->w: %d, f->h: %d\n", f->x, f->y, f->w, f->h);
m = j * d % f->w;
assert(m < l->x1);
- p->x = l->x1 - m;
+ p->x = l->x0 + m;
p->y = l->y0;
}
}