mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-19 13:30:02 +00:00
gsk/gskrendernodeparser.c: add CAIRO_HAS check
resolves #5072 Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>
This commit is contained in:
parent
9f855eecb1
commit
3610ac0fd1
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user