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

LibGfx: Make Bitmap::has_alpha_channel() return true for RGBA8888

This commit is contained in:
Andreas Kling 2022-02-14 17:30:34 +01:00
parent f4625ed9de
commit 81216c51d1

View file

@ -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&);