mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
parent
0d52b59cb1
commit
54d8e8170b
@ -646,6 +646,8 @@ static void inv_line(lv_obj_t * obj, lv_meter_indicator_t * indic, int32_t value
|
||||
angle = angle * 10;
|
||||
if(angle > 3600) angle -= 3600;
|
||||
|
||||
scale_center.x -= indic->type_data.needle_img.pivot.x;
|
||||
scale_center.y -= indic->type_data.needle_img.pivot.y;
|
||||
lv_area_t a;
|
||||
_lv_img_buf_get_transformed_area(&a, info.w, info.h, angle, LV_IMG_ZOOM_NONE, &indic->type_data.needle_img.pivot);
|
||||
a.x1 += scale_center.x - 2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user