summaryrefslogtreecommitdiff
path: root/test/record1414x.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-03-02 12:22:22 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-03-02 12:30:28 +0000
commit705cd6e1c642863a06b9cfc269572ceb473ac87a (patch)
tree47c3f14c5507bff961bc076ed4293134ed17f8da /test/record1414x.c
parentb8a6019e0c5f93d59faaec12de4bec454e9d8f9d (diff)
downloadcairo-705cd6e1c642863a06b9cfc269572ceb473ac87a.tar.gz
test/record1414: Pixel align the clip for replay
In order to match the reference image we need complete coverage, and the purpose of the test is to check non-integer scaling of replays rather than handling of the clip pixels. That partial coverage is better tested elsewhere. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'test/record1414x.c')
-rw-r--r--test/record1414x.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/record1414x.c b/test/record1414x.c
index bbd03cad2..b8adb861f 100644
--- a/test/record1414x.c
+++ b/test/record1414x.c
@@ -374,6 +374,7 @@ record_replay (cairo_t *cr, cairo_t *(*func)(cairo_t *), int width, int height)
cairo_surface_destroy (surface);
cairo_pattern_set_extend (cairo_get_source (cr), CAIRO_EXTEND_NONE);
+ cairo_identity_matrix (cr); /* make sure the clip is pixel-aligned */
for (y = 0; y < height; y += 2) {
for (x = 0; x < width; x += 2) {
cairo_rectangle (cr, x, y, 2, 2);