summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-02-14 17:30:34 +0100
committerAndreas Kling <kling@serenityos.org>2022-02-14 18:39:20 +0100
commit81216c51d1e06ce68a192b3cec9db61ecec6c4b2 (patch)
treeae13e9b557bafac341ea091b9b3b9c5eee0a0554 /Userland/Libraries/LibGfx
parentf4625ed9de71bd5b396b170dc6551cd21d20ae45 (diff)
downloadserenity-81216c51d1e06ce68a192b3cec9db61ecec6c4b2.zip
LibGfx: Make Bitmap::has_alpha_channel() return true for RGBA8888
Diffstat (limited to 'Userland/Libraries/LibGfx')
-rw-r--r--Userland/Libraries/LibGfx/Bitmap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGfx/Bitmap.h b/Userland/Libraries/LibGfx/Bitmap.h
index 398aaffb74..d6e58959c0 100644
--- a/Userland/Libraries/LibGfx/Bitmap.h
+++ b/Userland/Libraries/LibGfx/Bitmap.h
@@ -199,7 +199,7 @@ public:
void fill(Color);
- [[nodiscard]] bool has_alpha_channel() const { return m_format == BitmapFormat::BGRA8888; }
+ [[nodiscard]] bool has_alpha_channel() const { return m_format == BitmapFormat::BGRA8888 || m_format == BitmapFormat::RGBA8888; }
[[nodiscard]] BitmapFormat format() const { return m_format; }
void set_mmap_name(String const&);