diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-05-08 13:15:37 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-05-08 13:15:37 +0000 |
commit | c6ce750c73c6586a5c2e88a0620b04e9569af401 (patch) | |
tree | bfa313ab7b16bae4898a767524f510218ca71161 /samplecode/SamplePolyToPoly.cpp | |
parent | 83edde21f3945f988656c023384bd33e87f8b48d (diff) |
Fixed some fixed point build Windows compiler complaints
http://codereview.appspot.com/6197063/
git-svn-id: http://skia.googlecode.com/svn/trunk@3867 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode/SamplePolyToPoly.cpp')
-rw-r--r-- | samplecode/SamplePolyToPoly.cpp | 4 |
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(); } |