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
Notes: sideshowbarker 2024-07-17 22:01:16 +09:00

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