1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

fix: workaround MSVC C4576 error (#4907)

Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
This commit is contained in:
Neo Xu 2023-12-01 19:48:51 +08:00 committed by GitHub
parent 9f21869b72
commit 0f9ee575a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -266,16 +266,20 @@ void lv_point_transform(lv_point_t * p, int32_t angle, int32_t scale_x, int32_t
static inline lv_point_t lv_point_from_precise(const lv_point_precise_t * p)
{
return (lv_point_t) {
lv_point_t point = {
(int32_t)p->x, (int32_t)p->y
};
return point;
}
static inline lv_point_precise_t lv_point_to_precise(const lv_point_t * p)
{
return (lv_point_precise_t) {
lv_point_precise_t point = {
p->x, p->y
};
return point;
}
static inline void lv_point_set(lv_point_t * p, int32_t x, int32_t y)