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:
parent
f4625ed9de
commit
81216c51d1
1 changed files with 1 additions and 1 deletions
|
@ -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&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue