1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:07:45 +00:00

LibGfx: Make Color::set_alpha constexpr

This commit is contained in:
kleines Filmröllchen 2022-08-17 18:02:46 +02:00 committed by Linus Groh
parent e6f20f27d8
commit ac23b806a2

View file

@ -134,7 +134,7 @@ public:
constexpr u8 blue() const { return m_value & 0xff; }
constexpr u8 alpha() const { return (m_value >> 24) & 0xff; }
void set_alpha(u8 value)
constexpr void set_alpha(u8 value)
{
m_value &= 0x00ffffff;
m_value |= value << 24;