[cairo-commit] src/cairo-xcb-surface.c
Carl Worth
cworth at kemper.freedesktop.org
Fri Mar 16 17:46:37 PDT 2007
src/cairo-xcb-surface.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
New commits:
diff-tree 5aaf584bf44d762af5e486f21a037eb0cc6e1197 (from 6f96a5dd9954418b252ec45752dcf2c3b289fed4)
Author: Carl Worth <cworth at cworth.org>
Date: Fri Mar 16 17:45:31 2007 -0700
XCB: Fix parameter-order confusion with xcb_create_pixmap
This fixes mask-based clipping with the XCB backend, (which also makes
the xcb backend pass all tests that the xlib backend passes).
diff --git a/src/cairo-xcb-surface.c b/src/cairo-xcb-surface.c
index 2fdf8a1..0897961 100644
--- a/src/cairo-xcb-surface.c
+++ b/src/cairo-xcb-surface.c
@@ -1289,10 +1289,9 @@ _create_a8_picture (cairo_xcb_surface_t
= _CAIRO_FORMAT_TO_XRENDER_FORMAT (surface->dpy, CAIRO_FORMAT_A8);
xcb_rectangle_t rect = { 0, 0, width, height };
- xcb_create_pixmap (surface->dpy, pixmap, surface->drawable,
- width <= 0 ? 1 : width,
- height <= 0 ? 1 : height,
- 8);
+ xcb_create_pixmap (surface->dpy, 8, pixmap, surface->drawable,
+ width <= 0 ? 1 : width,
+ height <= 0 ? 1 : height);
xcb_render_create_picture (surface->dpy, picture, pixmap, format->id, mask, values);
xcb_render_fill_rectangles (surface->dpy, XCB_RENDER_PICT_OP_SRC, picture, *color, 1, &rect);
xcb_free_pixmap (surface->dpy, pixmap);
More information about the cairo-commit
mailing list