aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SamplePolyToPoly.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-05-08 13:15:37 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-05-08 13:15:37 +0000
commitc6ce750c73c6586a5c2e88a0620b04e9569af401 (patch)
treebfa313ab7b16bae4898a767524f510218ca71161 /samplecode/SamplePolyToPoly.cpp
parent83edde21f3945f988656c023384bd33e87f8b48d (diff)
Fixed some fixed point build Windows compiler complaints
Diffstat (limited to 'samplecode/SamplePolyToPoly.cpp')
-rw-r--r--samplecode/SamplePolyToPoly.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/samplecode/SamplePolyToPoly.cpp b/samplecode/SamplePolyToPoly.cpp
index dbda4da797..c12b402ab8 100644
--- a/samplecode/SamplePolyToPoly.cpp
+++ b/samplecode/SamplePolyToPoly.cpp
@@ -113,7 +113,9 @@ protected:
float y = D/2 - (fm.fAscent + fm.fDescent)/2;
SkString str;
str.appendS32(count);
- canvas->drawText(str.c_str(), str.size(), x, y, *paint);
+ canvas->drawText(str.c_str(), str.size(),
+ x, SkFloatToScalar(y),
+ *paint);
canvas->restore();
}