mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 19:18:12 +02:00
[test/xlib-surface-source] Skip test if DISPLAY not set
This commit is contained in:
parent
5d307b58b9
commit
bbd5f03fd8
1 changed files with 4 additions and 0 deletions
|
|
@ -61,6 +61,10 @@ create_source_surface (int size)
|
|||
data = xmalloc (sizeof (struct closure));
|
||||
|
||||
data->dpy = XOpenDisplay (NULL);
|
||||
if (!data->dpy) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
xrender_format = XRenderFindStandardFormat (data->dpy, PictStandardARGB32);
|
||||
|
||||
data->pix = XCreatePixmap (data->dpy, DefaultRootWindow (data->dpy),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue