Commit 8d336684 authored by Caleb Michael Moore's avatar Caleb Michael Moore

cairo stuff I think, I can't remember what I did yeserday before I went to...

cairo stuff I think, I can't remember what I did yeserday before I went to bed, it was probably something to do with those courners
parent 09f392ca
2005-10-4 Caleb Moore <c.moore@student.unsw.edu.au>
* most-cairo-related-places: added lots of stuff to do with gradients, objectBoundBox positioning and spreading. Made currentColor work with cairo. Made courners look great in cairo but crap in libart... I just can't win.
2005-10-04 Dom Lachowicz <cinamod@hotmail.com>
* rsvg-shapes.c: Fix problems in non-C locales. Bug #317615
......
......@@ -196,6 +196,7 @@ static ArtIRect rsvg_frect_pixelspaceise(RsvgFRect input, double * affine)
return temprect;
}
/**
* rsvg_render_svp: Render an SVP.
* @ctx: Context in which to render.
......@@ -326,7 +327,18 @@ rsvg_render_outline (RsvgState *state, ArtVpath *vpath)
}
static void
rsvg_render_bpath (RsvgDrawingCtx *ctx, const ArtBpath *bpath)
rsvg_art_close_up_bpath(ArtBpath *bpath)
{
while (bpath->code != ART_END)
{
if (bpath->code == ART_MOVETO)
bpath->code = ART_LINETO;
bpath = bpath + 1;
}
}
static void
rsvg_render_bpath (RsvgDrawingCtx *ctx, ArtBpath *bpath)
{
RsvgState *state;
ArtBpath *affine_bpath;
......@@ -337,6 +349,8 @@ rsvg_render_bpath (RsvgDrawingCtx *ctx, const ArtBpath *bpath)
int opacity;
int tmp;
rsvg_art_close_up_bpath(bpath);
pixbuf = ((RsvgArtRender *)ctx->render)->pixbuf;
if (pixbuf == NULL)
{
......
......@@ -179,28 +179,16 @@ void
rsvg_bpath_def_closepath (RsvgBpathDef *bpd)
{
RsvgBpath *bpath;
int n_bpath;
g_return_if_fail (bpd != NULL);
g_return_if_fail (bpd->moveto_idx >= 0);
g_return_if_fail (bpd->n_bpath > 0);
bpath = bpd->bpath;
n_bpath = bpd->n_bpath;
/* Add closing vector if we need it. */
if (bpath[n_bpath - 1].x3 != bpath[bpd->moveto_idx].x3 ||
bpath[n_bpath - 1].y3 != bpath[bpd->moveto_idx].y3)
{
rsvg_bpath_def_lineto (bpd, bpath[bpd->moveto_idx].x3,
bpath[bpd->moveto_idx].y3);
}
rsvg_bpath_def_replicate (bpd, bpd->moveto_idx);
bpath = bpd->bpath;
bpath[bpd->moveto_idx].code = RSVG_MOVETO;
bpd->moveto_idx = -1;
bpath[bpd->n_bpath - 1].code = RSVG_MOVETO;
bpd->moveto_idx = bpd->n_bpath - 1;
}
void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment