mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 21:38:03 +02:00
parent
e5e63a0462
commit
0f18a873ef
1 changed files with 11 additions and 11 deletions
|
|
@ -497,17 +497,6 @@ _cairo_ps_surface_emit_header (cairo_ps_surface_t *surface)
|
|||
|
||||
_cairo_output_stream_printf (surface->final_stream,
|
||||
"%%%%EndProlog\n");
|
||||
|
||||
num_comments = _cairo_array_num_elements (&surface->dsc_setup_comments);
|
||||
if (num_comments) {
|
||||
comments = _cairo_array_index (&surface->dsc_setup_comments, 0);
|
||||
for (i = 0; i < num_comments; i++) {
|
||||
_cairo_output_stream_printf (surface->final_stream,
|
||||
"%s\n", comments[i]);
|
||||
free (comments[i]);
|
||||
comments[i] = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static cairo_status_t
|
||||
|
|
@ -1764,6 +1753,17 @@ _cairo_ps_surface_finish (void *abstract_surface)
|
|||
_cairo_output_stream_printf (surface->final_stream,
|
||||
"%%%%BeginSetup\n");
|
||||
|
||||
num_comments = _cairo_array_num_elements (&surface->dsc_setup_comments);
|
||||
if (num_comments) {
|
||||
comments = _cairo_array_index (&surface->dsc_setup_comments, 0);
|
||||
for (i = 0; i < num_comments; i++) {
|
||||
_cairo_output_stream_printf (surface->final_stream,
|
||||
"%s\n", comments[i]);
|
||||
free (comments[i]);
|
||||
comments[i] = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
status = _cairo_ps_surface_emit_font_subsets (surface);
|
||||
if (unlikely (status))
|
||||
goto CLEANUP;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue