From 5d6a4cf7ceda5473a14e8cafdb09b8995b75e7b1 Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Fri, 13 May 2016 18:52:01 +0200 Subject: [PATCH] make sure to init the clip operation --- src/c/xamarin/sk_x_canvas.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/c/xamarin/sk_x_canvas.cpp b/src/c/xamarin/sk_x_canvas.cpp index f2b8a91..338316a 100644 --- a/src/c/xamarin/sk_x_canvas.cpp +++ b/src/c/xamarin/sk_x_canvas.cpp @@ -119,7 +119,7 @@ void sk_canvas_draw_round_rect(sk_canvas_t* ccanvas, const sk_rect_t* crect, flo } void sk_canvas_clip_rect_with_operation(sk_canvas_t* ccanvas, const sk_rect_t* crect, sk_region_op_t op, bool doAA) { - SkRegion::Op operation; + SkRegion::Op operation = SkRegion::kIntersect_Op; if (op) { find_sk(op, &operation); } @@ -127,7 +127,7 @@ void sk_canvas_clip_rect_with_operation(sk_canvas_t* ccanvas, const sk_rect_t* c } void sk_canvas_clip_path_with_operation(sk_canvas_t* ccanvas, const sk_path_t* cpath, sk_region_op_t op, bool doAA) { - SkRegion::Op operation; + SkRegion::Op operation = SkRegion::kIntersect_Op; if (op) { find_sk(op, &operation); } -- 2.7.4