mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-30 07:06:19 +08:00
feat(bar): add DIR_RTL support in vertical mode (#4459)
Signed-off-by: wangxuedong <wangxuedong@xiaomi.com>
This commit is contained in:
@@ -345,7 +345,7 @@ static void draw_indic(lv_event_t * e)
|
|||||||
}
|
}
|
||||||
|
|
||||||
lv_base_dir_t base_dir = lv_obj_get_style_base_dir(obj, LV_PART_MAIN);
|
lv_base_dir_t base_dir = lv_obj_get_style_base_dir(obj, LV_PART_MAIN);
|
||||||
if(hor && base_dir == LV_BASE_DIR_RTL) {
|
if(base_dir == LV_BASE_DIR_RTL) {
|
||||||
/*Swap axes*/
|
/*Swap axes*/
|
||||||
lv_coord_t * tmp;
|
lv_coord_t * tmp;
|
||||||
tmp = axis1;
|
tmp = axis1;
|
||||||
|
|||||||
Reference in New Issue
Block a user