[cairo-commit] src/cairo-path-stroke-boxes.c
Chris Wilson
ickle at kemper.freedesktop.org
Sun Apr 8 03:32:41 PDT 2012
src/cairo-path-stroke-boxes.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 6f28f0b33cb12f3b2dd48c87da0018bd00c17107
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Sun Apr 8 11:28:59 2012 +0100
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 at chris-wilson.co.uk>
diff --git a/src/cairo-path-stroke-boxes.c b/src/cairo-path-stroke-boxes.c
index 3e8c5a4..cc9dd19 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;
More information about the cairo-commit
mailing list