summaryrefslogtreecommitdiff
path: root/src/cairo-xcb-surface-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cairo-xcb-surface-core.c')
-rw-r--r--[-rwxr-xr-x]src/cairo-xcb-surface-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-xcb-surface-core.c b/src/cairo-xcb-surface-core.c
index db775cd17..e78cd80c2 100755..100644
--- a/src/cairo-xcb-surface-core.c
+++ b/src/cairo-xcb-surface-core.c
@@ -409,7 +409,7 @@ _cairo_xcb_surface_pixmap (cairo_xcb_surface_t *target,
if (pixmap != NULL && pixmap->screen == target->screen)
return (cairo_xcb_pixmap_t *) cairo_surface_reference (&pixmap->base);
- if (source->type == CAIRO_SURFACE_TYPE_XCB &&
+ if (_cairo_surface_is_xcb(source) &&
((cairo_xcb_surface_t *) source)->screen == target->screen)
{
cairo_xcb_surface_t *xcb_source = (cairo_xcb_surface_t *) source;
@@ -576,7 +576,7 @@ _cairo_xcb_surface_core_copy_boxes (cairo_xcb_surface_t *dst,
src->x0 + x1,
src->y0 + y1,
x1, y1,
- x2 - x2, y2 - x2);
+ x2 - x1, y2 - y1);
}
}
}