[cairo-commit] src/cairo-mono-scan-converter.c test/reference

Chris Wilson ickle at kemper.freedesktop.org
Thu Mar 1 06:43:54 PST 2012


 dev/null                        |binary
 src/cairo-mono-scan-converter.c |    2 +-
 test/reference/a1-bug.ref.png   |binary
 3 files changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b8a6019e0c5f93d59faaec12de4bec454e9d8f9d
Author: Zhigang Gong <zhigang.gong at linux.intel.com>
Date:   Thu Mar 1 14:38:30 2012 +0000

    mono: Always bias initial edge advancement
    
    Even for a vertical edge, we still need to bias the error term otherwise
    later we will find the error term is too larger and advance a pixel on
    every row.
    
    Signed-off-by: Zhigang Gong <zhigang.gong at linux.intel.com>
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/cairo-mono-scan-converter.c b/src/cairo-mono-scan-converter.c
index 106f801..29d5475 100644
--- a/src/cairo-mono-scan-converter.c
+++ b/src/cairo-mono-scan-converter.c
@@ -200,8 +200,8 @@ polygon_add_edge (struct polygon *polygon,
 	e->x = floored_muldivrem (ytop * CAIRO_FIXED_ONE + CAIRO_FIXED_FRAC_MASK/2 - edge->line.p1.y,
 				  dx, dy);
 	e->x.quo += edge->line.p1.x;
-	e->x.rem -= dy;
     }
+    e->x.rem -= dy;
 
     _polygon_insert_edge_into_its_y_bucket (polygon, e, ytop);
 }
diff --git a/test/reference/a1-bug.argb32.ref.png b/test/reference/a1-bug.argb32.ref.png
deleted file mode 100644
index f9ae8a8..0000000
Binary files a/test/reference/a1-bug.argb32.ref.png and /dev/null differ
diff --git a/test/reference/a1-bug.ref.png b/test/reference/a1-bug.ref.png
index 9c6a36e..dc6ff93 100644
Binary files a/test/reference/a1-bug.ref.png and b/test/reference/a1-bug.ref.png differ
diff --git a/test/reference/a1-bug.rgb24.ref.png b/test/reference/a1-bug.rgb24.ref.png
deleted file mode 100644
index f9ae8a8..0000000
Binary files a/test/reference/a1-bug.rgb24.ref.png and /dev/null differ


More information about the cairo-commit mailing list