mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-27 02:20:16 +01:00
[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:
parent
d0119a5aa2
commit
14454e12d8
1 changed files with 2 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue