From ac23b806a2460f8f7fdf054a05e7f3195ba40e83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?kleines=20Filmr=C3=B6llchen?= Date: Wed, 17 Aug 2022 18:02:46 +0200 Subject: [PATCH] LibGfx: Make Color::set_alpha constexpr --- Userland/Libraries/LibGfx/Color.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibGfx/Color.h b/Userland/Libraries/LibGfx/Color.h index 7e4507107c..536a0f7aec 100644 --- a/Userland/Libraries/LibGfx/Color.h +++ b/Userland/Libraries/LibGfx/Color.h @@ -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;