aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-02-22 00:24:29 +0000
committerDavid Robillard <d@drobilla.net>2015-02-22 00:24:29 +0000
commit516f4f2239b517ba25eb58a26703cdeb7451e8b8 (patch)
treedff3e263c002b9f404131a693b654eae93e79845
parent0bc0a34db6f2a85189b8f1013498ceaa88de9446 (diff)
downloadmachina-516f4f2239b517ba25eb58a26703cdeb7451e8b8.tar.gz
machina-516f4f2239b517ba25eb58a26703cdeb7451e8b8.tar.bz2
machina-516f4f2239b517ba25eb58a26703cdeb7451e8b8.zip
Make edges opaque.
git-svn-id: http://svn.drobilla.net/lad/trunk/machina@5595 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/gui/EdgeView.cpp8
-rw-r--r--src/gui/MachinaCanvas.cpp4
2 files changed, 6 insertions, 6 deletions
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<machina::client::ClientObject> 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<client::ClientObject> 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);