Index: gm/imagefiltersclipped.cpp |
diff --git a/gm/imagefiltersclipped.cpp b/gm/imagefiltersclipped.cpp |
index cc636aa276453415319b48427fc9e55783fd9bbb..50066fe6cd71eeb07f1c26b6c99141a23d578ff1 100644 |
--- a/gm/imagefiltersclipped.cpp |
+++ b/gm/imagefiltersclipped.cpp |
@@ -115,7 +115,8 @@ |
canvas->scale(SkScalarInvert(RESIZE_FACTOR_X), |
SkScalarInvert(RESIZE_FACTOR_Y)); |
} |
- canvas->drawCircle(r.centerX(), r.centerY(), r.width() * 2 / 5, paint); |
+ canvas->drawCircle(r.centerX(), r.centerY(), |
+ SkScalarDiv(r.width()*2, SkIntToScalar(5)), paint); |
canvas->restore(); |
canvas->translate(r.width() + margin, 0); |
} |