mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
refactor: Improve utils code style (#841)
* Improve utils code style * Fix indendation Co-authored-by: brindosch <edeltraud70@gmx.de>
This commit is contained in:
@@ -98,7 +98,7 @@ uint8_t RgbTransform::getBrightness() const
|
||||
|
||||
void RgbTransform::setBrightness(uint8_t brightness)
|
||||
{
|
||||
_brightness = brightness;
|
||||
_brightness = brightness;
|
||||
updateBrightnessComponents();
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ void RgbTransform::updateBrightnessComponents()
|
||||
{
|
||||
double Fw = _brightnessCompensation*2.0/100.0+1.0;
|
||||
double Fcmy = _brightnessCompensation/100.0+1.0;
|
||||
|
||||
|
||||
double B_in= 0;
|
||||
_brightness_rgb = 0;
|
||||
_brightness_cmy = 0;
|
||||
@@ -133,7 +133,7 @@ void RgbTransform::updateBrightnessComponents()
|
||||
}
|
||||
}
|
||||
|
||||
void RgbTransform::getBrightnessComponents(uint8_t & rgb, uint8_t & cmy, uint8_t & w )
|
||||
void RgbTransform::getBrightnessComponents(uint8_t & rgb, uint8_t & cmy, uint8_t & w) const
|
||||
{
|
||||
rgb = _brightness_rgb;
|
||||
cmy = _brightness_cmy;
|
||||
|
Reference in New Issue
Block a user