cairo: add package
[feed/video.git] / libs / cairo / patches / 003-pdf-flush.patch
1 From https://cgit.freedesktop.org/cairo/commit/?id=4c8813f0eaacc32c27126ad2296951a626300b89
2
3 Fixes https://gitlab.freedesktop.org/cairo/cairo/issues/342
4
5 From 4c8813f0eaacc32c27126ad2296951a626300b89 Mon Sep 17 00:00:00 2001
6 From: Adrian Johnson <ajohnson@redneon.com>
7 Date: Thu, 25 Oct 2018 18:46:17 +1030
8 Subject: pdf: add missing flush
9
10 Issue #342
11 ---
12 src/cairo-pdf-surface.c | 5 +++++
13 1 file changed, 5 insertions(+)
14
15 --- a/src/cairo-pdf-surface.c
16 +++ b/src/cairo-pdf-surface.c
17 @@ -7711,6 +7711,11 @@ _cairo_pdf_surface_mask (void *abstrac
18 * and most common, case to handle. */
19 if (_cairo_pattern_is_constant_alpha (mask, &extents.bounded, &alpha) &&
20 _can_paint_pattern (source)) {
21 +
22 + status = _cairo_pdf_operators_flush (&surface->pdf_operators);
23 + if (unlikely (status))
24 + goto cleanup;
25 +
26 _cairo_output_stream_printf (surface->output, "q\n");
27 status = _cairo_pdf_surface_paint_pattern (surface,
28 op,