LibGfx: Make Color::set_alpha constexpr
This commit is contained in:
parent
e6f20f27d8
commit
ac23b806a2
Notes:
sideshowbarker
2024-07-17 17:40:13 +09:00
Author: https://github.com/kleinesfilmroellchen Commit: https://github.com/SerenityOS/serenity/commit/ac23b806a2 Pull-request: https://github.com/SerenityOS/serenity/pull/14895 Reviewed-by: https://github.com/Hendiadyoin1 Reviewed-by: https://github.com/MacDue Reviewed-by: https://github.com/linusg Reviewed-by: https://github.com/trflynn89
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
Reference in a new issue