mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 01:48:07 +02:00
[cairo-xcb-surface] Fix compilation
As spotted by James Cloos <cloos@jbcloos.com>, I broke the compilation... This is a minimal fix with no claims of completeness.
This commit is contained in:
parent
069514a10f
commit
cbc9218cd3
1 changed files with 3 additions and 3 deletions
|
|
@ -1584,16 +1584,16 @@ _cairo_xcb_surface_is_similar (void *surface_a,
|
|||
{
|
||||
cairo_xcb_surface_t *a = surface_a;
|
||||
cairo_xcb_surface_t *b = surface_b;
|
||||
xcb_render_pictforminfo_t xrender_format;
|
||||
xcb_render_pictforminfo_t *xrender_format;
|
||||
|
||||
if (! _cairo_xcb_surface_same_screen (dst, src))
|
||||
if (! _cairo_xcb_surface_same_screen (a, b))
|
||||
return FALSE;
|
||||
|
||||
/* now check that the target is a similar format */
|
||||
xrender_format = _CAIRO_FORMAT_TO_XRENDER_FORMAT (b->dpy,
|
||||
_cairo_format_from_content (content));
|
||||
|
||||
return a->xrender_format == xrender_format;
|
||||
return a->xrender_format.id == xrender_format->id;
|
||||
}
|
||||
|
||||
static cairo_status_t
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue