From 516f4f2239b517ba25eb58a26703cdeb7451e8b8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 22 Feb 2015 00:24:29 +0000 Subject: Make edges opaque. git-svn-id: http://svn.drobilla.net/lad/trunk/machina@5595 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/EdgeView.cpp | 8 ++++---- src/gui/MachinaCanvas.cpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/gui/EdgeView.cpp b/src/gui/EdgeView.cpp index 67fc821..b4c6099 100644 --- a/src/gui/EdgeView.cpp +++ b/src/gui/EdgeView.cpp @@ -48,9 +48,9 @@ namespace gui { inline static uint32_t edge_color(float prob) { - static const uint32_t min = 0xFF4444C0; - static const uint32_t mid = 0xFFFF44C0; - static const uint32_t max = 0x44FF44C0; + static const uint32_t min = 0xFF4444FF; + static const uint32_t mid = 0xFFFF44FF; + static const uint32_t max = 0x44FF44FF; if (prob <= 0.5) { return UINT_INTERPOLATE(min, mid, prob * 2.0); @@ -67,7 +67,7 @@ EdgeView::EdgeView(Canvas& canvas, NodeView* src, NodeView* dst, SPtr edge) - : Ganv::Edge(canvas, src, dst, 0x9FA0A0F4, true, false) + : Ganv::Edge(canvas, src, dst, 0x9FA0A0FF, true, false) , _edge(edge) { set_color(edge_color(probability())); diff --git a/src/gui/MachinaCanvas.cpp b/src/gui/MachinaCanvas.cpp index f7292bf..a9e51c4 100644 --- a/src/gui/MachinaCanvas.cpp +++ b/src/gui/MachinaCanvas.cpp @@ -124,8 +124,8 @@ MachinaCanvas::on_new_object(SPtr object) } else { int scroll_x, scroll_y; get_scroll_offsets(scroll_x, scroll_y); - x = scroll_x + 64.0; - y = scroll_y + 64.0; + x = scroll_x + 128.0; + y = scroll_y + 128.0; } NodeView* view = new NodeView(_app->window(), *this, object, x, y); -- cgit v1.2.1