diff options
author | Carl Worth <cworth@cworth.org> | 2005-05-12 23:09:58 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2005-05-12 23:09:58 +0000 |
commit | d5ca4e37d7b761ccc4fc500c5ba615526a4a38c7 (patch) | |
tree | 1b08e9356ef586ee17eea3d30908c6c1c2c36448 | |
parent | 949daa1bc98cdd34a6c3d7b3ca69fd06e88883e4 (diff) |
Update xcb backend to compile after recent API changes:
Fix missing return value. (_cairo_xcb_surface_acquire_source_image): Remove calls to non-existent cairo_surface functions. (_cairo_xcb_surface_set_matrix): Update for new matrix member names. (_cairo_xcb_surface_get_extents): Fix typo.
-rw-r--r-- | ChangeLog | 11 | ||||
-rw-r--r-- | src/cairo-xcb-surface.c | 25 |
2 files changed, 22 insertions, 14 deletions
@@ -1,5 +1,16 @@ 2005-05-12 Carl Worth <cworth@cworth.org> + Update xcb backend to compile after recent API changes: + + * src/cairo-xcb-surface.c: (_cairo_xcb_surface_finish): + Fix missing return value. + (_cairo_xcb_surface_acquire_source_image): Remove calls to + non-existent cairo_surface functions. + (_cairo_xcb_surface_set_matrix): Update for new matrix member names. + (_cairo_xcb_surface_get_extents): Fix typo. + +2005-05-12 Carl Worth <cworth@cworth.org> + * test/.cvsignore: * test/Makefile.am: * test/paint-with-alpha-ref.png: diff --git a/src/cairo-xcb-surface.c b/src/cairo-xcb-surface.c index bf9082c6e..2ec7f0cda 100644 --- a/src/cairo-xcb-surface.c +++ b/src/cairo-xcb-surface.c @@ -247,7 +247,7 @@ _cairo_xcb_surface_create_similar (void *abstract_src, return &surface->base; } -static void +static cairo_status_t _cairo_xcb_surface_finish (void *abstract_surface) { cairo_xcb_surface_t *surface = abstract_surface; @@ -261,6 +261,8 @@ _cairo_xcb_surface_finish (void *abstract_surface) XCBFreeGC (surface->dpy, surface->gc); surface->dpy = 0; + + return CAIRO_STATUS_SUCCESS; } static int @@ -426,13 +428,8 @@ _cairo_xcb_surface_acquire_source_image (void *abstract_surfa cairo_status_t status; status = _get_image_surface (surface, NULL, &image, NULL); - if (status == CAIRO_STATUS_SUCCESS) { - cairo_surface_set_filter (&image->base, surface->base.filter); - cairo_surface_set_matrix (&image->base, &surface->base.matrix); - cairo_surface_set_repeat (&image->base, surface->base.repeat); - + if (status == CAIRO_STATUS_SUCCESS) *image_out = image; - } return status; } @@ -523,13 +520,13 @@ _cairo_xcb_surface_set_matrix (cairo_xcb_surface_t *surface, if (!surface->picture.xid) return CAIRO_STATUS_SUCCESS; - xtransform.matrix11 = _cairo_fixed_from_double (matrix->m[0][0]); - xtransform.matrix12 = _cairo_fixed_from_double (matrix->m[1][0]); - xtransform.matrix13 = _cairo_fixed_from_double (matrix->m[2][0]); + xtransform.matrix11 = _cairo_fixed_from_double (matrix->xx); + xtransform.matrix12 = _cairo_fixed_from_double (matrix->xy); + xtransform.matrix13 = _cairo_fixed_from_double (matrix->x0); - xtransform.matrix21 = _cairo_fixed_from_double (matrix->m[0][1]); - xtransform.matrix22 = _cairo_fixed_from_double (matrix->m[1][1]); - xtransform.matrix23 = _cairo_fixed_from_double (matrix->m[2][1]); + xtransform.matrix21 = _cairo_fixed_from_double (matrix->yx); + xtransform.matrix22 = _cairo_fixed_from_double (matrix->yy); + xtransform.matrix23 = _cairo_fixed_from_double (matrix->y0); xtransform.matrix31 = 0; xtransform.matrix32 = 0; @@ -852,7 +849,7 @@ static cairo_int_status_t _cairo_xcb_surface_get_extents (void *abstract_surface, cairo_rectangle_t *rectangle) { - cairo_xlib_surface_t *surface = abstract_surface; + cairo_xcb_surface_t *surface = abstract_surface; rectangle->x = 0; rectangle->y = 0; |