[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:
Chris Wilson 2008-11-26 17:30:29 +00:00
parent 5e37652362
commit 815e5b962e

View file

@ -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