mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-03 12:50:20 +01:00
[TEST] make imagediff work again
It seems to have bitrotten
This commit is contained in:
parent
f644d78dc1
commit
c647c0bbca
1 changed files with 5 additions and 4 deletions
|
|
@ -228,17 +228,18 @@ png_diff (const char *filename_a,
|
|||
surface_a, surface_b, surface_diff,
|
||||
result);
|
||||
|
||||
cairo_surface_destroy (surface_a);
|
||||
cairo_surface_destroy (surface_b);
|
||||
cairo_surface_destroy (surface_diff);
|
||||
if (filename_diff)
|
||||
_xunlink (filename_diff);
|
||||
|
||||
_xunlink (filename_diff);
|
||||
if (status == CAIRO_STATUS_SUCCESS &&
|
||||
result->pixels_changed)
|
||||
{
|
||||
status = write_png (surface_diff, filename_diff);
|
||||
}
|
||||
|
||||
cairo_surface_destroy (surface_a);
|
||||
cairo_surface_destroy (surface_b);
|
||||
cairo_surface_destroy (surface_diff);
|
||||
|
||||
return status;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue