summaryrefslogtreecommitdiff
path: root/src/cairo-xcb-surface-core.c
diff options
context:
space:
mode:
authorRavi Nanjundappa <nravi.n@samsung.com>2014-07-02 14:13:58 +0530
committerBryce Harrington <b.harrington@samsung.com>2014-07-07 03:53:13 -0700
commitbe62b1221169469c8923a5a1ec669761f5344c57 (patch)
tree89ca8c72093f85ee6cbd23e97eeebe78e605ff22 /src/cairo-xcb-surface-core.c
parent550385fb004e6064305518cf265adc03bd2d0c0b (diff)
downloadcairo-be62b1221169469c8923a5a1ec669761f5344c57.tar.gz
xcb: make use of _cairo_surface_is_xcb to check for surface type
Introduced a new inline function _cairo_surface_is_xcb() as similar to _cairo_surface_is_image() and used the same to check for xcb surface type Signed-off-by: Ravi Nanjundappa <nravi.n@samsung.com>
Diffstat (limited to 'src/cairo-xcb-surface-core.c')
-rw-r--r--src/cairo-xcb-surface-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-xcb-surface-core.c b/src/cairo-xcb-surface-core.c
index c608c9ac4..545fd2840 100644
--- a/src/cairo-xcb-surface-core.c
+++ b/src/cairo-xcb-surface-core.c
@@ -406,7 +406,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;