[cairo-commit] 2 commits - src/cairo-recording-surface.c

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Dec 29 00:03:27 UTC 2020


 src/cairo-recording-surface.c |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 0bf2c140d2dc6521c6f925b1757f2d4809eabf18
Merge: 979382dd3 be61878a8
Author: Heiko Lewin <hlewin at gmx.de>
Date:   Tue Dec 29 00:03:25 2020 +0000

    Merge branch 'uninitialised-var-in-recording' into 'master'
    
    Fix two uninitialised variables in _cairo_recording_surface_snapshot()
    
    See merge request cairo/cairo!95

commit be61878a8ed4123d00323b5c66826a4243cb823c
Author: Uli Schlachter <psychon at znc.in>
Date:   Sun Dec 27 21:35:16 2020 +0100

    Fix two uninitialised variables in _cairo_recording_surface_snapshot()
    
    Signed-off-by: Uli Schlachter <psychon at znc.in>

diff --git a/src/cairo-recording-surface.c b/src/cairo-recording-surface.c
index 6df8b0821..74823105a 100644
--- a/src/cairo-recording-surface.c
+++ b/src/cairo-recording-surface.c
@@ -1582,6 +1582,8 @@ _cairo_recording_surface_snapshot (void *abstract_other)
     surface->indices = NULL;
     surface->num_indices = 0;
     surface->optimize_clears = TRUE;
+    surface->has_bilevel_alpha = other->has_bilevel_alpha;
+    surface->has_only_op_over = other->has_only_op_over;
 
     _cairo_array_init (&surface->commands, sizeof (cairo_command_t *));
     status = _cairo_recording_surface_copy (surface, other);


More information about the cairo-commit mailing list