Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 235072
Collapse All | Expand All

(-)cairo-1.6.4/src/cairo-png.c (-1 / +9 lines)
Lines 119-124 Link Here
119
}
119
}
120
120
121
121
122
/* Starting with libpng-1.2.30, we must explicitly specify an output_flush_fn. 
123
 * Otherwise, we will segfault if we are writing to a stream. */
124
static void
125
png_simple_output_flush_fn (png_structp png_ptr)
126
{
127
    return;
128
}
129
122
static cairo_status_t
130
static cairo_status_t
123
write_png (cairo_surface_t	*surface,
131
write_png (cairo_surface_t	*surface,
124
	   png_rw_ptr		write_func,
132
	   png_rw_ptr		write_func,
Lines 179-185 Link Here
179
	goto BAIL3;
187
	goto BAIL3;
180
#endif
188
#endif
181
189
182
    png_set_write_fn (png, closure, write_func, NULL);
190
    png_set_write_fn (png, closure, write_func, png_simple_output_flush_fn);
183
191
184
    switch (image->format) {
192
    switch (image->format) {
185
    case CAIRO_FORMAT_ARGB32:
193
    case CAIRO_FORMAT_ARGB32:

Return to bug 235072