diff options
author | David Robillard <d@drobilla.net> | 2012-04-24 01:44:43 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-04-24 01:44:43 +0000 |
commit | 89c5346a3377a2075954acc436d3d843183ad31a (patch) | |
tree | c5d690b2a63b1a4720ccf34eea91f1b7a4b39183 /src/edge.c | |
parent | 2bae5abe2bf3068e4a36113e104168ba31928386 (diff) | |
download | ganv-89c5346a3377a2075954acc436d3d843183ad31a.tar.gz ganv-89c5346a3377a2075954acc436d3d843183ad31a.tar.bz2 ganv-89c5346a3377a2075954acc436d3d843183ad31a.zip |
Fix downward signal flow display (i.e. port labels disabled).
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@4260 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/edge.c')
-rw-r--r-- | src/edge.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -273,10 +273,10 @@ ganv_edge_update(GanvItem* item, int flags) coords->handle_x = coords->x1 + (dx / 2.0); coords->handle_y = coords->y1 + (dy / 2.0); - coords->cx1 = coords->x1 + (coords->cx1 * (ceilf(fabs(dx)) / 4.0)); - coords->cy1 += coords->y1; - coords->cx2 = coords->x2 + (coords->cx2 * (ceilf(fabs(dx)) / 4.0)); - coords->cy2 += coords->y2; + coords->cx1 = coords->x1 + (coords->cx1 * (ceilf(fabs(dx)) / 4.0)); + coords->cy1 = coords->y1 + (coords->cy1 * (ceilf(fabs(dy)) / 4.0)); + coords->cx2 = coords->x2 + (coords->cx2 * (ceilf(fabs(dx)) / 4.0)); + coords->cy2 = coords->y2 + (coords->cy2 * (ceilf(fabs(dy)) / 4.0)); // Update old coordinates impl->old_coords = impl->coords; |