summaryrefslogtreecommitdiffstats
path: root/src/node.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-01-04 00:08:59 +0000
committerDavid Robillard <d@drobilla.net>2014-01-04 00:08:59 +0000
commit86e10680c0f0c4d9f421ece6ec84cd898913af79 (patch)
treee41813b556b61a6ed9bd37c7a88690892ca166ab /src/node.c
parentcac7e4e5e5b4ad8331ba75649dcc84ead3f4a5b4 (diff)
downloadganv-86e10680c0f0c4d9f421ece6ec84cd898913af79.tar.gz
ganv-86e10680c0f0c4d9f421ece6ec84cd898913af79.tar.bz2
ganv-86e10680c0f0c4d9f421ece6ec84cd898913af79.zip
Fix select rectangle drag from bottom right to top left.
Simplify layout code. Calculate rectangle distance instead of center distance to minimize overlap. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5250 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/node.c')
-rw-r--r--src/node.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/node.c b/src/node.c
index f253e5b..72af575 100644
--- a/src/node.c
+++ b/src/node.c
@@ -76,8 +76,7 @@ ganv_node_init(GanvNode* node)
impl->force.y = 0.0;
impl->vel.x = 0.0;
impl->vel.y = 0.0;
- impl->has_in_edges = FALSE;
- impl->has_out_edges = FALSE;
+ impl->connected = FALSE;
#endif
}