mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:07:45 +00:00
LibGfx: Make Color::set_alpha constexpr
This commit is contained in:
parent
e6f20f27d8
commit
ac23b806a2
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue