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:
parent
9f21869b72
commit
0f9ee575a6
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user