[xlib/xcb] Check for same_screen in is_compatible

Two drawables can be used in an X and Render operation only if they share
the same screen.  Previously we were only checking for the same display
in is_compatible.  Check for the same screen now.
This commit is contained in:
Behdad Esfahbod 2007-02-23 10:59:57 -05:00
parent a1e5b91588
commit 67e3b3c53b
2 changed files with 2 additions and 2 deletions

View file

@ -2464,5 +2464,5 @@ _cairo_xcb_surface_is_compatible (void *surface_a,
cairo_xcb_surface_t *a = (cairo_xcb_surface_t*) surface_a;
cairo_xcb_surface_t *b = (cairo_xcb_surface_t*) surface_b;
return (a->dpy == b->dpy);
return _cairo_xcb_surface_same_screen (a, b);
}

View file

@ -2926,5 +2926,5 @@ _cairo_xlib_surface_is_compatible (void *surface_a,
cairo_xlib_surface_t *a = (cairo_xlib_surface_t*) surface_a;
cairo_xlib_surface_t *b = (cairo_xlib_surface_t*) surface_b;
return (a->dpy == b->dpy);
return _cairo_xlib_surface_same_screen (a, b);
}