static void core_loadimage_svg(GVJ_t * job, usershape_t *us, boxf b, boolean filled)
{
-// FIXME - no idea why this magic 72/96 is needed for images! >>>
- double width = (b.UR.x-b.LL.x)*72/96;
- double height = (b.UR.y-b.LL.y)*72/96;
+ double width = (b.UR.x-b.LL.x);
+ double height = (b.UR.y-b.LL.y);
double originx = (b.UR.x+b.LL.x - width)/2;
double originy = (b.UR.y+b.LL.y + height)/2;
-// <<<
assert(job);
assert(us);
assert(us->name);
gvprintf(job, "<svg width=\"%dpt\" height=\"%dpt\"\n",
job->width, job->height);
gvprintf(job, " viewBox=\"%.2f %.2f %.2f %.2f\"",
- job->canvasBox.LL.x * (job->dpi.x/POINTS_PER_INCH),
- job->canvasBox.LL.y * (job->dpi.y/POINTS_PER_INCH),
- job->canvasBox.UR.x * (job->dpi.x/POINTS_PER_INCH),
- job->canvasBox.UR.y * (job->dpi.y/POINTS_PER_INCH));
+ job->canvasBox.LL.x,
+ job->canvasBox.LL.y,
+ job->canvasBox.UR.x,
+ job->canvasBox.UR.y);
/* namespace of svg */
gvputs(job, " xmlns=\"http://www.w3.org/2000/svg\"");
/* namespace of xlink */