diff options
author | David Robillard <d@drobilla.net> | 2010-12-22 02:16:39 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-12-22 02:16:39 +0000 |
commit | 731274226c322192ccec35fb893f594e9bd69a88 (patch) | |
tree | 044e35fd4897fd6a0f7987a71c9fbe3adc3bc00e /src/gui | |
parent | 3d68bae339ee6f1285fc66d8192ea704708847f7 (diff) | |
download | machina-731274226c322192ccec35fb893f594e9bd69a88.tar.gz machina-731274226c322192ccec35fb893f594e9bd69a88.tar.bz2 machina-731274226c322192ccec35fb893f594e9bd69a88.zip |
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
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/EdgeView.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); |