From 0f60c61b0d7424005385c5687377b48ceb0c0c9b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 24 Feb 2015 04:55:56 +0000 Subject: Fix port label vertical alignment. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5604 a436a847-0d15-0410-975c-d299462d15a1 --- src/port.c | 6 +++--- 1 file 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); } } -- cgit v1.2.1