summaryrefslogtreecommitdiff
path: root/src/svg/cdsvg.c
diff options
context:
space:
mode:
authorscuri <scuri>2010-03-03 19:19:48 +0000
committerscuri <scuri>2010-03-03 19:19:48 +0000
commitdbc86aa6b66919c2e3c4032a09eca019a6d3afdf (patch)
tree4392370f837323cc2bb1d43c1348f22c32217192 /src/svg/cdsvg.c
parente78601f7c788d1206aa60a57a169bb6d02b748bd (diff)
*** empty log message ***
Diffstat (limited to 'src/svg/cdsvg.c')
-rw-r--r--src/svg/cdsvg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/svg/cdsvg.c b/src/svg/cdsvg.c
index 11f5bb3..90e70d9 100644
--- a/src/svg/cdsvg.c
+++ b/src/svg/cdsvg.c
@@ -878,7 +878,7 @@ static void cdpixel(cdCtxCanvas *ctxcanvas, int x, int y, long int color)
unsigned char r, g, b;
cdDecodeColor(color, &r, &g, &b);
- fprintf(ctxcanvas->file, "<circle cx=\"%d\" cy=\"%d\" r=\"0.1\" style=\"fill:rgb(%d,%d,%d); stroke:none; opacity:%g\" />\n",
+ fprintf(ctxcanvas->file, "<circle cx=\"%d\" cy=\"%d\" r=\"0.5\" style=\"fill:rgb(%d,%d,%d); stroke:none; opacity:%g\" />\n",
x, y, r, g, b, ctxcanvas->opacity);
}
@@ -1017,6 +1017,7 @@ static void cdcreatecanvas(cdCanvas *canvas, void *data)
cdRegisterAttribute(canvas, &cmd_attrib);
cdRegisterAttribute(canvas, &hatchboxsize_attrib);
+ cdRegisterAttribute(canvas, &opacity_attrib);
fprintf(ctxcanvas->file, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
fprintf(ctxcanvas->file, "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"%dpt\" height=\"%dpt\" viewBox=\"0 0 %d %d\" version=\"1.1\">\n", canvas->w, canvas->h, canvas->w, canvas->h);