mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 19:18:12 +02:00
[xlib] Set proper bpp when computing format from masks
Fixing omission in caa9eed464
This commit is contained in:
parent
a160c8c400
commit
50163a9faf
1 changed files with 1 additions and 0 deletions
|
|
@ -1001,6 +1001,7 @@ _draw_image_surface (cairo_xlib_surface_t *surface,
|
|||
image_masks.red_mask = surface->r_mask;
|
||||
image_masks.green_mask = surface->g_mask;
|
||||
image_masks.blue_mask = surface->b_mask;
|
||||
image_masks.bpp = surface->depth;
|
||||
ret = _pixman_format_from_masks (&image_masks, &intermediate_format);
|
||||
assert (ret);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue