From 731274226c322192ccec35fb893f594e9bd69a88 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 22 Dec 2010 02:16:39 +0000 Subject: Assign all objects a numeric ID at creation time. git-svn-id: http://svn.drobilla.net/lad/trunk/machina@2778 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/EdgeView.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui') diff --git a/src/gui/EdgeView.cpp b/src/gui/EdgeView.cpp index c72fc3f..eff796c 100644 --- a/src/gui/EdgeView.cpp +++ b/src/gui/EdgeView.cpp @@ -44,9 +44,9 @@ inline static uint32_t edge_color(float prob) { - static uint32_t min = 0xFF4444C0; - static uint32_t mid = 0xFFFF44C0; - static uint32_t max = 0x44FF44C0; + static const uint32_t min = 0xFF4444C0; + static const uint32_t mid = 0xFFFF44C0; + static const uint32_t max = 0x44FF44C0; if (prob <= 0.5) return UINT_INTERPOLATE(min, mid, prob*2.0); -- cgit v1.2.1