diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-05-16 18:50:40 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-05-16 18:50:40 +0000 |
commit | 115d931d2fbd3a109a21b28c8a9c5099e6c49c54 (patch) | |
tree | dd3b69fab74232ca36f106582b2f62428bd0841e /src | |
parent | 20a0477009b654e0143590d9f8fd557e56da5319 (diff) |
pass the region-op to the clipstack for SkCanvas::clipRegion.
we were defaulting to intersect all the time (doh).
git-svn-id: http://skia.googlecode.com/svn/trunk@3980 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/core/SkCanvas.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp index 3687d1e984..f50728421a 100644 --- a/src/core/SkCanvas.cpp +++ b/src/core/SkCanvas.cpp @@ -1194,7 +1194,7 @@ bool SkCanvas::clipRegion(const SkRegion& rgn, SkRegion::Op op) { // todo: signal fClipStack that we have a region, and therefore (I guess) // we have to ignore it, and use the region directly? - fClipStack.clipDevRect(rgn.getBounds()); + fClipStack.clipDevRect(rgn.getBounds(), op); return fMCRec->fRasterClip->op(rgn, op); } |