Index: samplecode/SampleHT.cpp |
diff --git a/samplecode/SampleHT.cpp b/samplecode/SampleHT.cpp |
index d0cd3a54996dce2211c17b9a4637b75f29a5ff92..50ea2875ec2f02fa5bff0ea2480853973ef830c4 100644 |
--- a/samplecode/SampleHT.cpp |
+++ b/samplecode/SampleHT.cpp |
@@ -95,9 +95,7 @@ public: |
fColor = floats_to_color(values); |
canvas->save(); |
- canvas->translate(fR.centerX(), fR.centerY()); |
- canvas->rotate(values[4]); |
- canvas->translate(-fR.centerX(), -fR.centerY()); |
+ canvas->rotate(values[4], fR.centerX(), fR.centerY()); |
switch (res) { |
case SkInterpolator::kFreezeEnd_Result: |