mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-06 03:28:09 +02:00
[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:
parent
a1e5b91588
commit
67e3b3c53b
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue