Skip to content

Commit

Permalink
make it compile again
Browse files Browse the repository at this point in the history
  • Loading branch information
profezzorn committed Nov 5, 2024
1 parent 2034ba1 commit 49d6a4f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions styles/layers.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,14 @@ class Compose<BLACK, L1> {
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));
}
};


Expand Down

0 comments on commit 49d6a4f

Please sign in to comment.