summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-12-18 18:11:10 +0000
committerDavid Robillard <d@drobilla.net>2011-12-18 18:11:10 +0000
commit64e90886d5dba94143a07e04b0964483a7023e01 (patch)
treeb0af64bae96b990e4b1d18251ad6b665d6c4a33d /src
parent7e781ca5574e6620af68751c8ae111b32343712e (diff)
downloadganv-64e90886d5dba94143a07e04b0964483a7023e01.tar.gz
ganv-64e90886d5dba94143a07e04b0964483a7023e01.tar.bz2
ganv-64e90886d5dba94143a07e04b0964483a7023e01.zip
Fix module layout.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@3887 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/module.c4
-rw-r--r--src/port.c16
2 files changed, 11 insertions, 9 deletions
diff --git a/src/module.c b/src/module.c
index b82b5ee..ea9ff99 100644
--- a/src/module.c
+++ b/src/module.c
@@ -331,7 +331,7 @@ resize_horiz(GanvModule* module)
h = ganv_box_get_height(pbox);
if (p->impl->is_input) {
- y = header_height + (i * (h + 1.0));
+ y = header_height + 2.0 + (i * (h + 2.0));
++i;
ganv_box_set_width(pbox, m.input_width);
ganv_node_move_to(pnode, 0.0, y);
@@ -341,7 +341,7 @@ resize_horiz(GanvModule* module)
canvas, pnode, ganv_edge_update_location);
} else {
if (!m.horiz || !last_was_input) {
- y = header_height + (i * (h + 1.0));
+ y = header_height + 2.0 + (i * (h + 2.0));
++i;
}
ganv_box_set_width(pbox, m.output_width);
diff --git a/src/port.c b/src/port.c
index 2a49980..974086a 100644
--- a/src/port.c
+++ b/src/port.c
@@ -284,15 +284,17 @@ ganv_port_new(GanvModule* module,
port->impl->is_input = is_input;
GanvBox* box = GANV_BOX(port);
- box->impl->radius_tl = (is_input ? 0.0 : 4.0);
- box->impl->radius_tr = (is_input ? 4.0 : 0.0);
- box->impl->radius_br = (is_input ? 4.0 : 0.0);
- box->impl->radius_bl = (is_input ? 0.0 : 4.0);
+ box->impl->radius_tl = (is_input ? 0.0 : 4.0);
+ box->impl->radius_tr = (is_input ? 4.0 : 0.0);
+ box->impl->radius_br = (is_input ? 4.0 : 0.0);
+ box->impl->radius_bl = (is_input ? 0.0 : 4.0);
+ box->impl->coords.border_width = 1.0;
GanvNode* node = GANV_NODE(port);
- node->impl->can_tail = !is_input;
- node->impl->can_head = is_input;
- node->impl->draggable = FALSE;
+ node->impl->can_tail = !is_input;
+ node->impl->can_head = is_input;
+ node->impl->draggable = FALSE;
+ node->impl->border_width = 1.0;
GanvCanvas* canvas = GANV_CANVAS(item->canvas);
if (!node->impl->label) {