[cairo-commit] src/cairo-xlib-surface.c
Benjamin Otte
company at kemper.freedesktop.org
Mon Sep 28 15:24:48 PDT 2009
src/cairo-xlib-surface.c | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 50163a9fafa77dd1135ca5b6b03c7ec5619687c1
Author: Benjamin Otte <otte at gnome.org>
Date: Tue Sep 29 00:23:12 2009 +0200
[xlib] Set proper bpp when computing format from masks
Fixing omission in caa9eed4646e78a62ffb49d9c4f48c0b351c7a7f
diff --git a/src/cairo-xlib-surface.c b/src/cairo-xlib-surface.c
index 957e436..fe87561 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);
More information about the cairo-commit
mailing list