Honor -c with rgbgfx -r (#1254)

Fixes #1166
This commit is contained in:
Eldred Habert
2023-11-24 19:19:04 +01:00
committed by GitHub
parent 39e85c6dec
commit f4463b1708
2 changed files with 11 additions and 1 deletions

View File

@@ -37,6 +37,7 @@ struct Rgba {
auto shl = [](uint8_t val, unsigned shift) { return static_cast<uint32_t>(val) << shift; };
return shl(red, 24) | shl(green, 16) | shl(blue, 8) | shl(alpha, 0);
}
friend bool operator==(Rgba const &lhs, Rgba const &rhs) { return lhs.toCSS() == rhs.toCSS(); }
friend bool operator!=(Rgba const &lhs, Rgba const &rhs) { return lhs.toCSS() != rhs.toCSS(); }
/*