summaryrefslogtreecommitdiffstats
path: root/src/edge.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-02-24 08:31:52 +0000
committerDavid Robillard <d@drobilla.net>2015-02-24 08:31:52 +0000
commit1b169cbe8955e5df9cd1c6d27d14fc2d8fb2c113 (patch)
tree73ad9701f40897bbe3f61f51bf587c6f94cbf648 /src/edge.c
parent0f60c61b0d7424005385c5687377b48ceb0c0c9b (diff)
downloadganv-1b169cbe8955e5df9cd1c6d27d14fc2d8fb2c113.tar.gz
ganv-1b169cbe8955e5df9cd1c6d27d14fc2d8fb2c113.tar.bz2
ganv-1b169cbe8955e5df9cd1c6d27d14fc2d8fb2c113.zip
Add light theme for typesettable canvas export.
Don't show edge handles on export. Fix port control drawing to be pixel perfect. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5605 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/edge.c')
-rw-r--r--src/edge.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/edge.c b/src/edge.c
index 6b91d97..89da897 100644
--- a/src/edge.c
+++ b/src/edge.c
@@ -26,9 +26,9 @@
#include "./color.h"
#include "./gettext.h"
+#include "color.h"
#include "ganv-private.h"
-// TODO: Very sloppy clipping for arrow heads
#define ARROW_DEPTH 32
#define ARROW_BREADTH 32
@@ -443,7 +443,8 @@ ganv_edge_draw(GanvItem* item,
}
}
- if (impl->coords.handle_radius > 0.0) {
+ if (!ganv_canvas_exporting(item->impl->canvas) &&
+ impl->coords.handle_radius > 0.0) {
cairo_move_to(cr, join_x, join_y);
cairo_arc(cr, join_x, join_y, impl->coords.handle_radius, 0, 2 * G_PI);
cairo_fill(cr);
@@ -635,7 +636,7 @@ ganv_edge_new(GanvCanvas* canvas,
if (!edge->impl->color) {
const guint tail_color = GANV_NODE(tail)->impl->fill_color;
g_object_set(G_OBJECT(edge),
- "color", highlight_color(tail_color, 48),
+ "color", EDGE_COLOR(tail_color),
NULL);
}