gsk/gskrendernodeparser.c: add CAIRO_HAS check

resolves #5072

Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>
This commit is contained in:
Thomas Devoogdt 2024-09-15 20:51:20 +02:00
parent 9f855eecb1
commit 3610ac0fd1
No known key found for this signature in database
GPG Key ID: 6F715455D85EEA95

View File

@ -4862,7 +4862,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
if (surface != NULL)
{
array = g_byte_array_new ();
#if CAIRO_HAS_PNG_FUNCTIONS
cairo_surface_write_to_png_stream (surface, cairo_write_array, array);
#endif
_indent (p);
g_string_append (p->str, "pixels: url(\"data:image/png;base64,\\\n");