From 9d58643a6c17ba4479734ef9a296d168d57ce153 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Thu, 20 Aug 2020 12:18:51 +0900 Subject: [PATCH] sw_engine: fix loss of data when it's converting. if SwCoord type is determined to 4byte, it could lose remarkable value that occur stroking jiggling. This fixes the issue. Change-Id: Ib2fed2a3bfc9188a30522f35837439364d446a73 --- src/lib/sw_engine/tvgSwMath.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/sw_engine/tvgSwMath.cpp b/src/lib/sw_engine/tvgSwMath.cpp index 5227d794..b3cf4778 100644 --- a/src/lib/sw_engine/tvgSwMath.cpp +++ b/src/lib/sw_engine/tvgSwMath.cpp @@ -29,7 +29,7 @@ /* Internal Class Implementation */ /************************************************************************/ -constexpr SwCoord CORDIC_FACTOR = 0xDBD95B16UL; //the Cordic shrink factor 0.858785336480436 * 2^32 +constexpr SwFixed CORDIC_FACTOR = 0xDBD95B16UL; //the Cordic shrink factor 0.858785336480436 * 2^32 //this table was generated for SW_FT_PI = 180L << 16, i.e. degrees constexpr static auto ATAN_MAX = 23;