mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:37:34 +00:00
LibAccelGfx: Set blending for alpha separately to be sum of src and dst
With this change we match blending in LibGfx and it fixes rendering on all websites that use opacity < 1.
This commit is contained in:
parent
c55d8a9971
commit
2361ce25a0
3 changed files with 9 additions and 9 deletions
|
@ -65,7 +65,7 @@ enum class BlendFactor {
|
|||
OneMinusSrcAlpha,
|
||||
SrcAlpha,
|
||||
};
|
||||
void enable_blending(BlendFactor source, BlendFactor destination);
|
||||
void enable_blending(BlendFactor source, BlendFactor destination, BlendFactor source_alpha, BlendFactor destination_alpha);
|
||||
|
||||
void read_pixels(Gfx::IntRect, Gfx::Bitmap&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue