Index: samplecode/SampleAll.cpp |
diff --git a/samplecode/SampleAll.cpp b/samplecode/SampleAll.cpp |
index 8907a349e83a5a9ed49b70f0c014c51a9ab999c1..647a199dda574b2411e760f9f366c33097202150 100644 |
--- a/samplecode/SampleAll.cpp |
+++ b/samplecode/SampleAll.cpp |
@@ -451,7 +451,7 @@ protected: |
canvas->drawBitmap(fBug, left, top, &paint); |
canvas->translate(SkIntToScalar(30), 0); |
canvas->drawSprite(fTb, |
- SkScalarRound(canvas->getTotalMatrix().getTranslateX()), |
+ SkScalarRoundToInt(canvas->getTotalMatrix().getTranslateX()), |
spriteOffset + 10, &paint); |
canvas->translate(-SkIntToScalar(30), SkIntToScalar(30)); |