diff options
author | David Robillard <d@drobilla.net> | 2015-03-15 01:35:46 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-03-15 01:35:46 +0000 |
commit | 6391901e7dca631b14364dca7e5e0e664e473a6f (patch) | |
tree | ebc97600bb4efafc8d0f679b2755d1c1c636af89 /src/port.c | |
parent | d31536d69b6972c2834c390689fa05f8b118c0e9 (diff) | |
download | ganv-6391901e7dca631b14364dca7e5e0e664e473a6f.tar.gz ganv-6391901e7dca631b14364dca7e5e0e664e473a6f.tar.bz2 ganv-6391901e7dca631b14364dca7e5e0e664e473a6f.zip |
Add support for beveled box corners.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5631 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/port.c')
-rw-r--r-- | src/port.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -25,7 +25,7 @@ #include "./ganv-private.h" #include "./gettext.h" -static const double PORT_LABEL_HPAD = 2.0; +static const double PORT_LABEL_HPAD = 4.0; static const double PORT_LABEL_VPAD = 1.0; static void @@ -475,16 +475,16 @@ ganv_port_set_direction(GanvPort* port, gboolean is_input = port->impl->is_input; switch (direction) { case GANV_DIRECTION_RIGHT: - 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 : 5.0); + box->impl->radius_tr = (is_input ? 5.0 : 0.0); + box->impl->radius_br = (is_input ? 5.0 : 0.0); + box->impl->radius_bl = (is_input ? 0.0 : 5.0); break; case GANV_DIRECTION_DOWN: - box->impl->radius_tl = (is_input ? 0.0 : 4.0); - box->impl->radius_tr = (is_input ? 0.0 : 4.0); - box->impl->radius_br = (is_input ? 4.0 : 0.0); - box->impl->radius_bl = (is_input ? 4.0 : 0.0); + box->impl->radius_tl = (is_input ? 0.0 : 5.0); + box->impl->radius_tr = (is_input ? 0.0 : 5.0); + box->impl->radius_br = (is_input ? 5.0 : 0.0); + box->impl->radius_bl = (is_input ? 5.0 : 0.0); break; } |