From 6115338c59799b4ef09cda187f23867dea093f6e Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Tue, 5 Apr 2011 13:05:18 +0000 Subject: handle scale < 0 for stroke-rects git-svn-id: http://skia.googlecode.com/svn/trunk@1052 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/core/SkDraw.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; } -- cgit v1.2.3