sw_engine: Fix build error (no match type) 16/234816/2
authorJunsuChoi <jsuya.choi@samsung.com>
Fri, 29 May 2020 04:33:46 +0000 (13:33 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Fri, 29 May 2020 06:31:43 +0000 (15:31 +0900)
../src/lib/sw_engine/tvgSwStroke.cpp:282:72: error: no match for ‘operator<’ (operand types are ‘long int’ and ‘const SwPoint’)
         if (border->ptsCnt > 0 && abs(diff.x) < EPSILON && abs(diff.y) < EPSILON) return;

Change-Id: I426f8980ba718e3dc908dc32a62fb897b5b5fbbf

src/lib/sw_engine/tvgSwStroke.cpp

index 2f810a1..acaf2c6 100644 (file)
@@ -269,7 +269,7 @@ static void _growBorder(SwStrokeBorder* border, uint32_t newPts)
 
 static void _borderLineTo(SwStrokeBorder* border, SwPoint& to, bool movable)
 {
-    constexpr SwPoint EPSILON = 2;
+    constexpr SwCoord EPSILON = 2;
 
     assert(border && border->start >= 0);