mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
LibGfx: Make Bitmap::has_alpha_channel() return true for RGBA8888
This commit is contained in:
parent
f4625ed9de
commit
81216c51d1
Notes:
sideshowbarker
2024-07-17 22:01:16 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/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…
Reference in a new issue