diff --git a/styles/layers.h b/styles/layers.h index 1bc7cf97e..dcf434ac9 100644 --- a/styles/layers.h +++ b/styles/layers.h @@ -63,12 +63,14 @@ class Compose { PONUA L1 layer_; SimpleColor dealpha(const SimpleColor& color) { return color; } OverDriveColor dealpha(const OverDriveColor& color) { return color; } - SimpleColor dealpha(const RGBA_um_nod& color) { return SimpleColor(color.c * color.alpha >> 15; } + SimpleColor dealpha(const RGBA_um_nod& color) { return SimpleColor(color.c * color.alpha >> 15); } OverDriveColor dealpha(const RGBA_um& color) { return OverDriveColor(color.c * color.alpha >> 15, color.overdrive); } SimpleColor dealpha(const RGBA_nod& color) { return SimpleColor(color.c); } OverDriveColor dealpha(const RGBA& color) { return OverDriveColor(color.c, color.overdrive); } public: - auto getColor(int led) -> AUTO_RETURN(dealpha(layer_.getColor(led))); + auto getColor(int led) -> decltype(dealpha(layer_.getColor(led))) { + return dealpha(layer_.getColor(led)); + } };