Index: src/core/SkScan_Hairline.cpp |
diff --git a/src/core/SkScan_Hairline.cpp b/src/core/SkScan_Hairline.cpp |
index 3b0f152a4fef4570cbb8f065720c833882952f35..1e7e762b5a867a905e88de377226ad4d26e39cb3 100644 |
--- a/src/core/SkScan_Hairline.cpp |
+++ b/src/core/SkScan_Hairline.cpp |
@@ -200,8 +200,8 @@ static int compute_int_quad_dist(const SkPoint pts[3]) { |
dx = SkScalarAbs(dx); |
dy = SkScalarAbs(dy); |
// convert to whole pixel values (use ceiling to be conservative) |
- int idx = SkScalarCeil(dx); |
- int idy = SkScalarCeil(dy); |
+ int idx = SkScalarCeilToInt(dx); |
+ int idy = SkScalarCeilToInt(dy); |
// use the cheap approx for distance |
if (idx > idy) { |
return idx + (idy >> 1); |