summaryrefslogtreecommitdiff
path: root/src/cairo-xlib-surface.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2009-09-29 00:23:12 +0200
committerBenjamin Otte <otte@gnome.org>2009-09-29 00:24:37 +0200
commit50163a9fafa77dd1135ca5b6b03c7ec5619687c1 (patch)
treeccec8f56c839cc04b0a85eb8c6ae76ba2e6d185b /src/cairo-xlib-surface.c
parenta160c8c4009e069db53bec79abd8926231de9a7f (diff)
[xlib] Set proper bpp when computing format from masks
Diffstat (limited to 'src/cairo-xlib-surface.c')
-rw-r--r--src/cairo-xlib-surface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cairo-xlib-surface.c b/src/cairo-xlib-surface.c
index 957e4360..fe87561d 100644
--- a/src/cairo-xlib-surface.c
+++ b/src/cairo-xlib-surface.c
@@ -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);