summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-02-24 04:55:56 +0000
committerDavid Robillard <d@drobilla.net>2015-02-24 04:55:56 +0000
commit0f60c61b0d7424005385c5687377b48ceb0c0c9b (patch)
tree86b05a1e31c2c6892d0ea5e3c6838408610c37b1 /src
parentc6b90e805ba7b99d009f52bdb6fc9db547ad1cb7 (diff)
downloadganv-0f60c61b0d7424005385c5687377b48ceb0c0c9b.tar.gz
ganv-0f60c61b0d7424005385c5687377b48ceb0c0c9b.tar.bz2
ganv-0f60c61b0d7424005385c5687377b48ceb0c0c9b.zip
Fix port label vertical alignment.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5604 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/port.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/port.c b/src/port.c
index 7f4df2d..801b26e 100644
--- a/src/port.c
+++ b/src/port.c
@@ -273,12 +273,12 @@ ganv_port_place_labels(GanvPort* port)
if (ganv_canvas_get_direction(canvas) == GANV_DIRECTION_RIGHT) {
ganv_item_set(GANV_ITEM(impl->value_label),
"x", PORT_LABEL_HPAD,
- "y", (port_h - vlabel_h) / 2.0,
+ "y", (port_h - vlabel_h) / 2.0 - PORT_LABEL_VPAD,
NULL);
} else {
ganv_item_set(GANV_ITEM(impl->value_label),
"x", (port_w - vlabel_w) / 2.0,
- "y", (port_h - vlabel_h) / 2.0,
+ "y", (port_h - vlabel_h) / 2.0 - PORT_LABEL_VPAD,
NULL);
}
vlabel_w += PORT_LABEL_HPAD;
@@ -288,7 +288,7 @@ ganv_port_place_labels(GanvPort* port)
if (ganv_canvas_get_direction(canvas) == GANV_DIRECTION_RIGHT) {
ganv_item_set(GANV_ITEM(label),
"x", vlabel_w + PORT_LABEL_HPAD,
- "y", (port_h - label_h) / 2.0,
+ "y", (port_h - label_h) / 2.0 - PORT_LABEL_VPAD,
NULL);
}
}