fix(vg_lite): alleviate the loss of precision in obtaining path bound (#7731)
Arduino Lint / lint (push) Waiting to run
MicroPython CI / Build esp32 port (push) Waiting to run
MicroPython CI / Build rp2 port (push) Waiting to run
MicroPython CI / Build stm32 port (push) Waiting to run
MicroPython CI / Build unix port (push) Waiting to run
C/C++ CI / Build OPTIONS_16BIT (push) Waiting to run
C/C++ CI / Build OPTIONS_24BIT (push) Waiting to run
C/C++ CI / Build OPTIONS_FULL_32BIT (push) Waiting to run
C/C++ CI / Build OPTIONS_SDL (push) Waiting to run
C/C++ CI / Build OPTIONS_VG_LITE (push) Waiting to run
C/C++ CI / Build Windows GCC (push) Waiting to run
C/C++ CI / Build Windows MSVC (push) Waiting to run
C/C++ CI / Build ESP IDF ESP32S3 (push) Waiting to run
C/C++ CI / Run tests with 32bit build (push) Waiting to run
C/C++ CI / Run tests with 64bit build (push) Waiting to run
BOM Check / bom-check (push) Waiting to run
Verify that lv_conf_internal.h matches repository state / verify-conf-internal (push) Waiting to run
Verify the widget property name / verify-property-name (push) Waiting to run
Verify code formatting / verify-formatting (push) Waiting to run
Build docs / build-and-deploy (push) Waiting to run
Test API JSON generator / Test API JSON (push) Waiting to run
Check Makefile / Build using Makefile (push) Waiting to run
Check Makefile for UEFI / Build using Makefile for UEFI (push) Waiting to run
Port repo release update / run-release-branch-updater (push) Waiting to run
Verify Kconfig / verify-kconfig (push) Waiting to run

Signed-off-by: zhangmingyu3 <zhangmingyu3@xiaomi.com>
Co-authored-by: zhangmingyu3 <zhangmingyu3@xiaomi.com>
This commit is contained in:
Shouko-4429
2025-02-11 08:01:19 +08:00
committed by GitHub
parent 09634a0b22
commit cbdc344464
+3 -1
View File
@@ -20,6 +20,7 @@
#include "lv_vg_lite_grad.h"
#include "lv_vg_lite_stroke.h"
#include <float.h>
#include <math.h>
/*********************
* DEFINES
@@ -390,7 +391,8 @@ static void lv_path_to_vg(lv_vg_lite_path_t * dest, const lv_vector_path_t * src
LV_ASSERT_MSG((lv_uintptr_t)path_data - (lv_uintptr_t)vg_path->path == path_length, "path length overflow");
lv_vg_lite_path_set_bounding_box(dest, min_x, min_y, max_x, max_y);
lv_vg_lite_path_set_bounding_box(dest, lroundf(min_x), lroundf(min_y),
lroundf(max_x), lroundf(max_y));
LV_PROFILER_DRAW_END;
}