summaryrefslogtreecommitdiff
path: root/plugingui/knob.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2018-06-09 09:45:03 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2018-06-09 09:45:03 +0200
commit21554166b294470ac593a1a90c82d1b4fe75c61e (patch)
tree4fe4c5782a0bbcef3e3309633e0c2ee7e71c4e2a /plugingui/knob.cc
parent108a94eaefc1e9ccfe316d4ce9a30e3bd532af5a (diff)
Add ctor for creating colours from four unsigned char values.
Diffstat (limited to 'plugingui/knob.cc')
-rw-r--r--plugingui/knob.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugingui/knob.cc b/plugingui/knob.cc
index 8e60056..aaf9735 100644
--- a/plugingui/knob.cc
+++ b/plugingui/knob.cc
@@ -214,7 +214,7 @@ void Knob::repaintEvent(RepaintEvent* repaintEvent)
double to_y = cos((-1 * padval + 1) * 2 * M_PI) * radius * 0.8;
// Draw "fat" line by drawing 9 lines with moved start/ending points.
- p.setColour(Colour(1, 0, 0, 1));
+ p.setColour(Colour(1.0f, 0.0f, 0.0f, 1.0f));
for(int _x = -1; _x < 2; _x++)
{
for(int _y = -1; _y < 2; _y++)