[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.
This commit is contained in:
Chris Wilson 2007-12-20 17:49:06 +00:00
parent d0119a5aa2
commit 14454e12d8

View file

@ -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) {