mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-17 03:40:28 +01:00
xcb: Short-circuit multiplying the alpha mask by 1.0
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
4032c86127
commit
7c6e1b8db8
1 changed files with 3 additions and 0 deletions
|
|
@ -1666,6 +1666,9 @@ static void blt_in(void *closure,
|
|||
xcb_render_color_t color;
|
||||
xcb_rectangle_t rect;
|
||||
|
||||
if (coverage == 0xffff)
|
||||
return;
|
||||
|
||||
color.red = color.green = color.blue = 0;
|
||||
color.alpha = coverage;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue