mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 16:08:20 +02:00
[script] Add a fallback image surface for replay
If we do not have a native windowing surface compiled into the library, just replay the script to an image surface.
This commit is contained in:
parent
5e37652362
commit
815e5b962e
1 changed files with 8 additions and 0 deletions
|
|
@ -68,6 +68,14 @@ _surface_create (void *closure,
|
|||
|
||||
return surface;
|
||||
}
|
||||
#else
|
||||
/* fallback: just use an image surface */
|
||||
static cairo_surface_t *
|
||||
_surface_create (void *closure,
|
||||
double width, double height)
|
||||
{
|
||||
return cairo_image_surface_create (CAIRO_FORMAT_ARGB32, width, height);
|
||||
}
|
||||
#endif
|
||||
|
||||
int
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue