diff options
Diffstat (limited to 'src/gui/Port.cpp')
-rw-r--r-- | src/gui/Port.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/Port.cpp b/src/gui/Port.cpp index 4282343e..643cca5f 100644 --- a/src/gui/Port.cpp +++ b/src/gui/Port.cpp @@ -352,7 +352,7 @@ peak_color(float peak) static const uint32_t peak_min = 0xFF561FC0; static const uint32_t peak_max = 0xFF0A38C0; - if (peak < 1.0) { + if (peak < 1.0f) { return rgba_interpolate(min, max, peak); } else { return rgba_interpolate(peak_min, peak_max, fminf(peak, 2.0f) - 1.0f); |