diff options
author | scuri <scuri> | 2009-12-04 18:12:37 +0000 |
---|---|---|
committer | scuri <scuri> | 2009-12-04 18:12:37 +0000 |
commit | 2df78db7863840f59d0a1beff5fae7012bce637d (patch) | |
tree | 1c3e893bf1bf96fecd22e98fe54615340ea193b7 /src/svg | |
parent | e91a54168fa98057d8f46c170548ee8653f7cc34 (diff) |
*** empty log message ***
Diffstat (limited to 'src/svg')
-rw-r--r-- | src/svg/cdsvg.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/svg/cdsvg.c b/src/svg/cdsvg.c index d44e40a..184031c 100644 --- a/src/svg/cdsvg.c +++ b/src/svg/cdsvg.c @@ -882,6 +882,16 @@ static void cdpixel(cdCtxCanvas *ctxcanvas, int x, int y, long int color) x, y, r, g, b, r, g, b, ctxcanvas->linewidth, ctxcanvas->linecap, ctxcanvas->linejoin, ctxcanvas->linestyle, ctxcanvas->backopacity); } +static void cddeactivate (cdCtxCanvas* ctxcanvas) +{ + fflush(ctxcanvas->file); +} + +static void cdflush (cdCtxCanvas* ctxcanvas) +{ + fflush(ctxcanvas->file); +} + static void cdcreatecanvas(cdCanvas *canvas, void *data) { char filename[10240] = ""; @@ -984,15 +994,17 @@ static void cdinittable(cdCanvas* canvas) canvas->cxTransform = cdtransform; + canvas->cxFlush = cdflush; + canvas->cxDeactivate = cddeactivate; canvas->cxKillCanvas = (void (*)(cdCtxCanvas*))cdkillcanvas; } static cdContext cdSVGContext = { - CD_CAP_ALL & ~(CD_CAP_CLEAR | CD_CAP_FLUSH | CD_CAP_PLAY | CD_CAP_PALETTE | + CD_CAP_ALL & ~(CD_CAP_CLEAR | CD_CAP_PLAY | CD_CAP_PALETTE | CD_CAP_REGION | CD_CAP_IMAGESRV | CD_CAP_WRITEMODE | CD_CAP_FONTDIM | CD_CAP_TEXTSIZE | - CD_CAP_IMAGERGBA | CD_CAP_GETIMAGERGB), + CD_CAP_GETIMAGERGB), 0, cdcreatecanvas, cdinittable, |