set white value to zero when setting rgb color

master
Michael Zanetti 2018-12-03 14:53:03 +01:00
parent bdb33013e2
commit cfb3e1415c
1 changed files with 1 additions and 0 deletions

View File

@ -106,6 +106,7 @@ bool AveaBulb::setColor(const QColor &color)
m_red = scaleColorValueUp(color.red());
m_green = scaleColorValueUp(color.green());
m_blue = scaleColorValueUp(color.blue());
m_white = 0;
m_color = color;