diff options
author | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2010-12-20 18:26:13 +0000 |
---|---|---|
committer | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2010-12-20 18:26:13 +0000 |
commit | f2b98d67dcb6fcb3120feede9c72016fc7b3ead8 (patch) | |
tree | d78b57945b29865dcdeb1badbb360575289b292d /samplecode/SamplePath.cpp | |
parent | 29e5054dd07c97c2195c5f64bf67aaa6b5afa204 (diff) |
merge with changes for GPU backend
git-svn-id: http://skia.googlecode.com/svn/trunk@637 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode/SamplePath.cpp')
-rw-r--r-- | samplecode/SamplePath.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/samplecode/SamplePath.cpp b/samplecode/SamplePath.cpp index 1eb4222b1c..2c8e8c2026 100644 --- a/samplecode/SamplePath.cpp +++ b/samplecode/SamplePath.cpp @@ -1,3 +1,4 @@ + #include "SampleCode.h" #include "SkView.h" #include "SkCanvas.h" @@ -44,7 +45,12 @@ static void test_cubic2() { SkParsePath::FromSVGString(str, &path); { +#ifdef SK_BUILD_FOR_WIN + // windows doesn't have strtof + float x = (float)strtod("9.94099e+07", NULL); +#else float x = strtof("9.94099e+07", NULL); +#endif int ix = (int)x; int fx = (int)(x * 65536); int ffx = SkScalarToFixed(x); |