| Index: samplecode/SampleAll.cpp
|
| diff --git a/samplecode/SampleAll.cpp b/samplecode/SampleAll.cpp
|
| index 133b653c071eb12b54eeb98a604e544749ec151b..8907a349e83a5a9ed49b70f0c014c51a9ab999c1 100644
|
| --- a/samplecode/SampleAll.cpp
|
| +++ b/samplecode/SampleAll.cpp
|
| @@ -285,8 +285,8 @@ protected:
|
| path.addCircle(SkIntToScalar(20), SkIntToScalar(20), SkIntToScalar(20),
|
| SkPath::kCCW_Direction);
|
| for (int index = 0; index < 10; index++) {
|
| - SkScalar x = SkFloatToScalar((float) cos(index / 10.0f * 2 * 3.1415925358f));
|
| - SkScalar y = SkFloatToScalar((float) sin(index / 10.0f * 2 * 3.1415925358f));
|
| + SkScalar x = (float) cos(index / 10.0f * 2 * 3.1415925358f);
|
| + SkScalar y = (float) sin(index / 10.0f * 2 * 3.1415925358f);
|
| x *= index & 1 ? 7 : 14;
|
| y *= index & 1 ? 7 : 14;
|
| x += SkIntToScalar(20);
|
|
|