feat(bar): add DIR_RTL support in vertical mode (#4459)

Signed-off-by: wangxuedong <wangxuedong@xiaomi.com>
This commit is contained in:
xaowang96
2023-08-17 19:57:35 +08:00
committed by GitHub
parent dcffe24094
commit d47a44f225
+1 -1
View File
@@ -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);
if(hor && base_dir == LV_BASE_DIR_RTL) {
if(base_dir == LV_BASE_DIR_RTL) {
/*Swap axes*/
lv_coord_t * tmp;
tmp = axis1;