Index: samplecode/SampleShip.cpp |
diff --git a/samplecode/SampleShip.cpp b/samplecode/SampleShip.cpp |
index fddf0235baf7836de550e0f313b70f155427f100..caaad046d91824eaf4c129dff115316558fd22c4 100644 |
--- a/samplecode/SampleShip.cpp |
+++ b/samplecode/SampleShip.cpp |
@@ -70,7 +70,7 @@ |
fTex[currIndex] = SkRect::MakeLTRB(0.0f, 0.0f, |
SkIntToScalar(fAtlas->width()), |
SkIntToScalar(fAtlas->height())); |
- fXform[currIndex] = SkRSXform::MakeFromRadians(0.1f, SK_ScalarPI*0.5f, |
+ fXform[currIndex] = SkRSXform::MakeFromRadians(2.0f, SK_ScalarPI*0.5f, |
xPos, yPos, anchorX, anchorY); |
currIndex++; |
} |
@@ -78,7 +78,7 @@ |
fTex[currIndex] = SkRect::MakeLTRB(0.0f, 0.0f, |
SkIntToScalar(fAtlas->width()), |
SkIntToScalar(fAtlas->height())); |
- fXform[currIndex] = SkRSXform::MakeFromRadians(0.5f, SK_ScalarPI*0.5f, |
+ fXform[currIndex] = SkRSXform::MakeFromRadians(2.0f, SK_ScalarPI*0.5f, |
kWidth*0.5f, kHeight*0.5f, anchorX, anchorY); |
fCurrentTime = 0; |
@@ -147,10 +147,7 @@ |
} |
fProc(canvas, fAtlas, fXform, fTex, nullptr, kGrid*kGrid+1, nullptr, &paint); |
- paint.setColor(SK_ColorBLACK); |
- canvas->drawRect(SkRect::MakeXYWH(0, 0, 200, 24), paint); |
- paint.setColor(SK_ColorWHITE); |
- canvas->drawText(outString.c_str(), outString.size(), 5, 15, paint); |
+ canvas->drawText(outString.c_str(), outString.size(), 100.f, 100.f, paint); |
this->inval(nullptr); |
} |