mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
Make SVG output actually SVG again.
Currently the SVG output is a SVG file with an embedded `image/png` file. Restricting to `CAIRO_SVG_VERSION_1_2` means the file goes back to being a vector. Signed-off-by: Tim 'mithro' Ansell <[email protected]>
This commit is contained in:
@@ -370,6 +370,9 @@ GrTCairoPlotSVG (char *filename, MagWindow *mw)
|
||||
wind_context = tcairodata->context;
|
||||
tcairodata->surface = (cairo_surface_t *)cairo_svg_surface_create(filename,
|
||||
(double)screenw, (double)screenh);
|
||||
cairo_svg_surface_restrict_to_version(
|
||||
tcairodata->surface, CAIRO_SVG_VERSION_1_2);
|
||||
|
||||
tcairodata->context = cairo_create(tcairodata->surface);
|
||||
WindRedisplay(mw);
|
||||
WindUpdate();
|
||||
|
||||
Reference in New Issue
Block a user