aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SampleHT.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'samplecode/SampleHT.cpp')
-rw-r--r--samplecode/SampleHT.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/samplecode/SampleHT.cpp b/samplecode/SampleHT.cpp
index 50ea2875ec..e1483bef2c 100644
--- a/samplecode/SampleHT.cpp
+++ b/samplecode/SampleHT.cpp
@@ -12,6 +12,7 @@
#include "SkDrawable.h"
#include "SkInterpolator.h"
#include "SkPictureRecorder.h"
+#include "SkPointPriv.h"
#include "SkRandom.h"
const SkRect gUnitSquare = { -1, -1, 1, 1 };
@@ -35,7 +36,7 @@ static bool oval_contains(const SkRect& r, SkScalar x, SkScalar y) {
m.setRectToRect(r, gUnitSquare, SkMatrix::kFill_ScaleToFit);
SkPoint pt;
m.mapXY(x, y, &pt);
- return pt.lengthSqd() <= 1;
+ return SkPointPriv::LengthSqd(pt) <= 1;
}
static SkColor rand_opaque_color(uint32_t seed) {