diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-04-08 11:28:59 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-04-08 11:30:56 +0100 |
commit | 6f28f0b33cb12f3b2dd48c87da0018bd00c17107 (patch) | |
tree | ce01a43d08d574d25c91a0f3d1c5776c9d8bcd14 /src/cairo-path-stroke-boxes.c | |
parent | 8657ca10e34b0034602680b4304d47ecf90ccbfd (diff) | |
download | cairo-6f28f0b33cb12f3b2dd48c87da0018bd00c17107.tar.gz |
stroke: Fix misuse of half_line_x for vertical caps on dashes
A typo using half_line_x instead of half_line_y when emitting dashed
segments of the rectilinear stroke.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/cairo-path-stroke-boxes.c')
-rw-r--r-- | src/cairo-path-stroke-boxes.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cairo-path-stroke-boxes.c b/src/cairo-path-stroke-boxes.c index 3e8c5a4ce..cc9dd195a 100644 --- a/src/cairo-path-stroke-boxes.c +++ b/src/cairo-path-stroke-boxes.c @@ -342,15 +342,15 @@ _cairo_rectilinear_stroker_emit_segments_dashed (cairo_rectilinear_stroker_t *st box.p1.x = box.p2.x - half_line_x; } if (out_slope.dy >= 0) - box.p1.y -= half_line_x; + box.p1.y -= half_line_y; if (out_slope.dy <= 0) - box.p2.y += half_line_x; + box.p2.y += half_line_y; } else { if (box.p1.y <= box.p2.y) { box.p1.y = box.p2.y; - box.p2.y += half_line_x; + box.p2.y += half_line_y; } else { - box.p1.y = box.p2.y - half_line_x; + box.p1.y = box.p2.y - half_line_y; } if (out_slope.dx >= 0) box.p1.x -= half_line_x; |