mirror of
https://github.com/openharmony/graphic_graphic_utils_lite.git
synced 2026-07-01 01:37:57 -04:00
@@ -51,6 +51,14 @@ if (os_level != "standard") {
|
||||
]
|
||||
cflags_cc = cflags
|
||||
}
|
||||
|
||||
if (defined(board_toolchain_type) && board_toolchain_type == "clang") {
|
||||
cflags = [
|
||||
"--Wno-float-equal",
|
||||
]
|
||||
cflags_cc = cflags
|
||||
}
|
||||
|
||||
if (enable_graphic_dualcore == true) {
|
||||
defines += [ "HAL_CPU_NUM=2" ]
|
||||
}
|
||||
|
||||
@@ -146,6 +146,9 @@ void QuadrBezierCurveDividOp::Init(float x1, float y1,
|
||||
float x3, float y3)
|
||||
{
|
||||
points_.Clear();
|
||||
if (approximationScale_ == 0) {
|
||||
return;
|
||||
}
|
||||
distanceToleranceSquare_ = HALFNUM / approximationScale_;
|
||||
distanceToleranceSquare_ *= distanceToleranceSquare_;
|
||||
Bezier(x1, y1, x2, y2, x3, y3);
|
||||
|
||||
Reference in New Issue
Block a user