Index: samplecode/SampleFilter2.cpp |
diff --git a/samplecode/SampleFilter2.cpp b/samplecode/SampleFilter2.cpp |
index b4314c5a5c1850cd561658246a67291daca08fdf..f3ab7f4574b1e2c7c5449151f89b54791fbb4869 100644 |
--- a/samplecode/SampleFilter2.cpp |
+++ b/samplecode/SampleFilter2.cpp |
@@ -82,8 +82,8 @@ protected: |
for (int i = 0; i < fBitmapCount; i++) { |
SkScalar x = (k * fBitmapCount + j) * W; |
SkScalar y = i * H; |
- x = SkIntToScalar(SkScalarRound(x)); |
- y = SkIntToScalar(SkScalarRound(y)); |
+ x = SkScalarRoundToScalar(x); |
+ y = SkScalarRoundToScalar(y); |
canvas->drawBitmap(fBitmaps[i], x, y, &paint); |
if (i == 0) { |
SkPaint p; |