From: Matthew Leibowitz Date: Fri, 13 May 2016 16:52:01 +0000 (+0200) Subject: make sure to init the clip operation X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~159 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d6a4cf7ceda5473a14e8cafdb09b8995b75e7b1;p=platform%2Fupstream%2FlibSkiaSharp.git make sure to init the clip operation --- 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); }