summaryrefslogtreecommitdiff
path: root/quantum/color.c
diff options
context:
space:
mode:
authorFlorian Didron <fdidron@users.noreply.github.com>2019-05-20 15:56:09 +0900
committerGitHub <noreply@github.com>2019-05-20 15:56:09 +0900
commit5b346419c752a73a71e7490a1be02876cc196f25 (patch)
tree4ab9bbdeaf620f7948c390792af2d1967c45bc9a /quantum/color.c
parentfd7caea42e845127582fc16055cda412fe3aa22e (diff)
parent0315ef645b069b19bbd48e70504326a1ec3c8cef (diff)
Merge branch 'master' into audio_click_delay
Diffstat (limited to 'quantum/color.c')
-rw-r--r--quantum/color.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/quantum/color.c b/quantum/color.c
index 466e6edacb..a309da379a 100644
--- a/quantum/color.c
+++ b/quantum/color.c
@@ -27,9 +27,13 @@ RGB hsv_to_rgb( HSV hsv )
if ( hsv.s == 0 )
{
+#ifdef USE_CIE1931_CURVE
+ rgb.r = rgb.g = rgb.b = pgm_read_byte( &CIE1931_CURVE[hsv.v] );
+#else
rgb.r = hsv.v;
rgb.g = hsv.v;
rgb.b = hsv.v;
+#endif
return rgb;
}