diff options
Diffstat (limited to 'samplecode/SampleWarp.cpp')
| -rw-r--r-- | samplecode/SampleWarp.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/samplecode/SampleWarp.cpp b/samplecode/SampleWarp.cpp index 606144cac6..bf4ef0dbed 100644 --- a/samplecode/SampleWarp.cpp +++ b/samplecode/SampleWarp.cpp @@ -327,6 +327,7 @@ class WarpView : public SkView { public: WarpView() { SkBitmap bm; +// SkImageDecoder::DecodeFile("/skimages/marker.png", &bm); SkImageDecoder::DecodeFile("/skimages/logo.gif", &bm); // SkImageDecoder::DecodeFile("/beach_shot.JPG", &bm); fBitmap = bm; @@ -387,7 +388,7 @@ protected: return orig; } - const SkScalar period = 20; + const SkScalar period = 10 + dragLength/4; const SkScalar mag = dragLength / 3; SkScalar d = length / (period); |
