From 14454e12d8df606ed4b79c6e7cda4071b00ee581 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 20 Dec 2007 17:49:06 +0000 Subject: [PATCH] [cairo-test] Wrap test function with cairo_save/restore(). Restore the context to the original state before blitting the group surface in order to remove any residual state such as a clip path. --- test/cairo-test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/cairo-test.c b/test/cairo-test.c index d262dbb92..9e1bdfe76 100644 --- a/test/cairo-test.c +++ b/test/cairo-test.c @@ -373,7 +373,9 @@ cairo_test_for_target (cairo_test_t *test, cairo_set_font_options (cr, font_options); cairo_font_options_destroy (font_options); + cairo_save (cr); status = (test->draw) (cr, test->width, test->height); + cairo_restore (cr); /* Then, check all the different ways it could fail. */ if (status) {