mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 01:48:07 +02:00
[cairo-xlib] Do not create surface with mismatching Visual and PictFormat.
As identified by Vladimir Vukicevic, _cairo_xlib_surface_create_similar_with_format() was erroneously passing down the source Visual when creating a surface with a different XRenderPictFormat.
This commit is contained in:
parent
9aac5916bc
commit
4924d4d928
1 changed files with 1 additions and 1 deletions
|
|
@ -162,7 +162,7 @@ _cairo_xlib_surface_create_similar_with_format (void *abstract_src,
|
|||
|
||||
surface = (cairo_xlib_surface_t *)
|
||||
_cairo_xlib_surface_create_internal (dpy, pix,
|
||||
src->screen, src->visual,
|
||||
src->screen, NULL,
|
||||
xrender_format,
|
||||
width, height,
|
||||
xrender_format->depth);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue