Index: samplecode/SampleSkLayer.cpp |
diff --git a/samplecode/SampleSkLayer.cpp b/samplecode/SampleSkLayer.cpp |
index 8d30ff6466acdd2bb0e20a7366f049f53760bde7..c57a281d6cb292578597892b1bf342539b8b0c23 100644 |
--- a/samplecode/SampleSkLayer.cpp |
+++ b/samplecode/SampleSkLayer.cpp |
@@ -140,7 +140,7 @@ protected: |
SkPaint paint; |
paint.setColor(fColor); |
- paint.setAlpha(SkScalarRound(opacity * 255)); |
+ paint.setAlpha(SkScalarRoundToInt(opacity * 255)); |
canvas->drawRect(r, paint); |
} |