diff options
author | 2011-04-05 13:05:18 +0000 | |
---|---|---|
committer | 2011-04-05 13:05:18 +0000 | |
commit | 6115338c59799b4ef09cda187f23867dea093f6e (patch) | |
tree | 2faaffb74d35a955228836fadc5c39541469ca59 /src/core/SkDraw.cpp | |
parent | 0ebe81a2b7a2dfd3b978520c2594e448bdbadca0 (diff) |
handle scale < 0 for stroke-rects
git-svn-id: http://skia.googlecode.com/svn/trunk@1052 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkDraw.cpp')
-rw-r--r-- | src/core/SkDraw.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/SkDraw.cpp b/src/core/SkDraw.cpp index b122c4f93e..0256f3bbd2 100644 --- a/src/core/SkDraw.cpp +++ b/src/core/SkDraw.cpp @@ -689,6 +689,8 @@ static bool easy_rect_join(const SkPaint& paint, const SkMatrix& matrix, SkASSERT(matrix.rectStaysRect()); SkPoint pt = { paint.getStrokeWidth(), paint.getStrokeWidth() }; matrix.mapVectors(strokeSize, &pt, 1); + strokeSize->fX = SkScalarAbs(strokeSize->fX); + strokeSize->fY = SkScalarAbs(strokeSize->fY); return true; } |