[cairo-commit] src/cairo-path-stroke-boxes.c test/reference

Chris Wilson ickle at kemper.freedesktop.org
Sat Apr 21 02:20:22 PDT 2012


 src/cairo-path-stroke-boxes.c                                 |    2 +-
 test/reference/rectilinear-dash-scale-unaligned.ref.png       |binary
 test/reference/rectilinear-dash-scale-unaligned.traps.ref.png |binary
 test/reference/rectilinear-dash-scale.ref.png                 |binary
 4 files changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c0b523eb652b2c4ba41cb27132d46ad9211b5df4
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Sat Apr 21 10:16:30 2012 +0100

    stroke(boxes): Convert the dash step back into device units before incrementing
    
    Reported-by: Carlos Garcia Campos <carlosgc at gnome.org>
    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 1543a64..9b194b2 100644
--- a/src/cairo-path-stroke-boxes.c
+++ b/src/cairo-path-stroke-boxes.c
@@ -546,7 +546,7 @@ _cairo_rectilinear_stroker_line_to_dashed (void		*closure,
 	    dash_on = FALSE;
 	}
 
-	_cairo_stroker_dash_step (&stroker->dash, step_length);
+	_cairo_stroker_dash_step (&stroker->dash, step_length / sf);
 	segment.p1 = segment.p2;
     }
 
diff --git a/test/reference/rectilinear-dash-scale-unaligned.ref.png b/test/reference/rectilinear-dash-scale-unaligned.ref.png
index ff16841..19dbe7f 100644
Binary files a/test/reference/rectilinear-dash-scale-unaligned.ref.png and b/test/reference/rectilinear-dash-scale-unaligned.ref.png differ
diff --git a/test/reference/rectilinear-dash-scale-unaligned.traps.ref.png b/test/reference/rectilinear-dash-scale-unaligned.traps.ref.png
index a1b7b35..02abfaa 100644
Binary files a/test/reference/rectilinear-dash-scale-unaligned.traps.ref.png and b/test/reference/rectilinear-dash-scale-unaligned.traps.ref.png differ
diff --git a/test/reference/rectilinear-dash-scale.ref.png b/test/reference/rectilinear-dash-scale.ref.png
index fb8f39a..1ab868c 100644
Binary files a/test/reference/rectilinear-dash-scale.ref.png and b/test/reference/rectilinear-dash-scale.ref.png differ


More information about the cairo-commit mailing list