Index: samplecode/SampleRegion.cpp |
diff --git a/samplecode/SampleRegion.cpp b/samplecode/SampleRegion.cpp |
index 886eb96c786630ca6d65ef47b761eee3efefd49c..7e3e0d260c22b936f877655c95219309f0a08d38 100644 |
--- a/samplecode/SampleRegion.cpp |
+++ b/samplecode/SampleRegion.cpp |
@@ -396,7 +396,8 @@ protected: |
virtual SkView::Click* onFindClickHandler(SkScalar x, SkScalar y, |
unsigned modi) SK_OVERRIDE { |
- return fRect.contains(SkScalarRound(x), SkScalarRound(y)) ? new Click(this) : NULL; |
+ return fRect.contains(SkScalarRoundToInt(x), |
+ SkScalarRoundToInt(y)) ? new Click(this) : NULL; |
} |
virtual bool onClick(Click* click) { |