Index: src/utils/SkNinePatch.cpp |
diff --git a/src/utils/SkNinePatch.cpp b/src/utils/SkNinePatch.cpp |
index 4e0d1d1a39b3a3a923e55723ccfcbce97ffdb493..ce8d4801c60d398ba77eb83c58f8954237fbc99e 100644 |
--- a/src/utils/SkNinePatch.cpp |
+++ b/src/utils/SkNinePatch.cpp |
@@ -161,7 +161,7 @@ void SkNinePatch::DrawMesh(SkCanvas* canvas, const SkRect& bounds, |
if (bounds.width() >= fixed) |
stretchX = (bounds.width() - fixed) / stretchSize; |
else // reuse stretchX, but keep it negative as a signal |
- stretchX = SkScalarDiv(-bounds.width(), fixed); |
+ stretchX = -bounds.width() / fixed; |
} |
if (numYStretch > 0) { |
@@ -173,7 +173,7 @@ void SkNinePatch::DrawMesh(SkCanvas* canvas, const SkRect& bounds, |
if (bounds.height() >= fixed) |
stretchY = (bounds.height() - fixed) / stretchSize; |
else // reuse stretchX, but keep it negative as a signal |
- stretchY = SkScalarDiv(-bounds.height(), fixed); |
+ stretchY = -bounds.height() / fixed; |
} |
#if 0 |