From f894ebf98022ecf5844cd50840e916d6ddbea0bf Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Thu, 19 Oct 2006 15:45:53 -0700 Subject: [PATCH] clip-push-group: Adjust test slightly to ensure mask-based clip is not anchored at the origin This should help us test if there's an offset problem in copying the mask-based clip during cairo_push_group. --- test/clip-push-group-ref.png | Bin 200 -> 199 bytes test/clip-push-group.c | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test/clip-push-group-ref.png b/test/clip-push-group-ref.png index acaf4d87096336f89f7619ac5ce8e44245f28a3d..327cc90bdb33b596fe6c0e48d5c6b5a2c50c5c5e 100644 GIT binary patch delta 143 zcmV;A0C4}v0mlK5Kz}S2)#0>%0001KNklD%PDHLkV1g;FKE?n5 delta 144 zcmV;B0B`@t0muQ6Kz}I!TtfA00001LNklLZv5Zj27>HrzJc4(x7>W`crbf)lIYXA`TLAc^@Gy(MPpIf}67 ykd~_mTP`D&iydbXb)3Y7RD=tO`g>{*e*l`Pk9!c9fwTYs00{s|MNUMnLSTYiUOJQj diff --git a/test/clip-push-group.c b/test/clip-push-group.c index f18d13c77..8274e85d4 100644 --- a/test/clip-push-group.c +++ b/test/clip-push-group.c @@ -34,6 +34,7 @@ #include "cairo-test.h" #define SIZE 10 +#define PAD 2 static cairo_test_draw_function_t draw; @@ -54,7 +55,7 @@ draw (cairo_t *cr, int width, int height) cairo_arc (cr, SIZE / 2, SIZE / 2, - SIZE / 2, + SIZE / 2 - PAD, 0, 2 * M_PI); cairo_clip (cr);