mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-09 07:18:04 +02:00
xcb: Silence a compiler warning for mixing type and internal type enums
cairo-xcb-surface-render.c:1134:35: warning: comparison between 'cairo_surface_type_t' and 'enum _cairo_internal_surface_type' [-Wenum-compare] Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
be288ce016
commit
b6fcf0768c
1 changed files with 1 additions and 1 deletions
|
|
@ -1131,7 +1131,7 @@ _cairo_xcb_surface_picture (cairo_xcb_surface_t *target,
|
|||
picture->width = rect.width;
|
||||
picture->height = rect.height;
|
||||
}
|
||||
} else if (source->backend->type == CAIRO_INTERNAL_SURFACE_TYPE_SNAPSHOT) {
|
||||
} else if (_cairo_surface_is_snapshot (source)) {
|
||||
cairo_surface_snapshot_t *snap = (cairo_surface_snapshot_t *) source;
|
||||
cairo_xcb_surface_t *xcb = ((cairo_xlib_xcb_surface_t *) snap->target)->xcb;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue