{FORMAT_JPEG_VRML, "jpg:vrml", 1, &engine_vrml, NULL},
{FORMAT_PS_PS, "ps:ps", 1, &engine_ps, NULL},
+ {FORMAT_PS_PS, "ps:lasi", 1, &engine_ps, NULL},
{FORMAT_PSLIB_PS, "(lib):ps", 1, &engine_pslib, NULL}, /* for pslib */
{FORMAT_PNG_DOT, "png:dot", 1, &engine_dot, NULL},
{FORMAT_XBM_GD, "xbm:gd", 1, &engine, NULL},
#endif
{FORMAT_GD_PS, "gd:ps", 1, &engine_ps, NULL},
+ {FORMAT_GD_PS, "gd:lasi", 1, &engine_ps, NULL},
{FORMAT_GD2_PS, "gd2:ps", 1, &engine_ps, NULL},
+ {FORMAT_GD2_PS, "gd2:lasi", 1, &engine_ps, NULL},
#ifdef HAVE_GD_GIF
{FORMAT_GIF_PS, "gif:ps", 1, &engine_ps, NULL},
+ {FORMAT_GIF_PS, "gif:lasi", 1, &engine_ps, NULL},
#endif
#ifdef HAVE_GD_JPEG
{FORMAT_JPG_PS, "jpeg:ps", 1, &engine_ps, NULL},
{FORMAT_JPG_PS, "jpg:ps", 1, &engine_ps, NULL},
{FORMAT_JPG_PS, "jpe:ps", 1, &engine_ps, NULL},
+ {FORMAT_JPG_PS, "jpeg:lasi", 1, &engine_ps, NULL},
+ {FORMAT_JPG_PS, "jpg:lasi", 1, &engine_ps, NULL},
+ {FORMAT_JPG_PS, "jpe:lasi", 1, &engine_ps, NULL},
#endif
#ifdef HAVE_GD_PNG
{FORMAT_PNG_PS, "png:ps", 1, &engine_ps, NULL},
+ {FORMAT_PNG_PS, "png:lasi", 1, &engine_ps, NULL},
#endif
#ifdef HAVE_GD_WBMP
{FORMAT_WBMP_PS, "wbmp:ps", 1, &engine_ps, NULL},
+ {FORMAT_WBMP_PS, "wbmp:lasi", 1, &engine_ps, NULL},
#endif
#ifdef HAVE_GD_XPM
{FORMAT_XBM_PS, "xbm:ps", 1, &engine_ps, NULL},
+ {FORMAT_XBM_PS, "xbm:lasi", 1, &engine_ps, NULL},
#endif
#endif
{0, NULL, 0, NULL, NULL}
static void cairo_freeimage(usershape_t *us)
{
- cairo_destroy((cairo_t*)us->data);
+ cairo_surface_destroy((cairo_surface_t*)(us->data));
}
static cairo_surface_t* cairo_loadimage(GVJ_t * job, usershape_t *us)
surface = (cairo_surface_t*)(us->data); /* use cached data */
else {
us->datafree(us); /* free incompatible cache data */
+ us->datafree = NULL;
us->data = NULL;
}
}
gvplugin_installed_t gvloadimage_pango_types[] = {
#ifdef HAVE_PANGOCAIRO
{FORMAT_PNG_CAIRO, "png:cairo", 1, &engine_cairo, NULL},
+ {FORMAT_PNG_PS, "png:lasi", 2, &engine_ps, NULL},
{FORMAT_PNG_PS, "png:ps", 2, &engine_ps, NULL},
#endif
{0, NULL, 0, NULL, NULL}