From f0c52b35112e7734d52a2e25101e0d58ff50cea7 Mon Sep 17 00:00:00 2001 From: Themba Dube Date: Wed, 30 Dec 2020 11:01:24 -0500 Subject: [PATCH] Add note about base_dir functions requiring LV_USE_BIDI --- src/lv_core/lv_obj.c | 3 ++- src/lv_core/lv_obj.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lv_core/lv_obj.c b/src/lv_core/lv_obj.c index d962144d3..a549db952 100644 --- a/src/lv_core/lv_obj.c +++ b/src/lv_core/lv_obj.c @@ -1657,7 +1657,8 @@ void lv_obj_set_parent_event(lv_obj_t * obj, bool en) } /** - * Set the base direction of the object + * Set the base direction of the object. + * @note This only works if LV_USE_BIDI is enabled. * @param obj pointer to an object * @param dir the new base direction. `LV_BIDI_DIR_LTR/RTL/AUTO/INHERIT` */ diff --git a/src/lv_core/lv_obj.h b/src/lv_core/lv_obj.h index 2aabcd7ca..2328d9df0 100644 --- a/src/lv_core/lv_obj.h +++ b/src/lv_core/lv_obj.h @@ -775,6 +775,7 @@ void lv_obj_set_parent_event(lv_obj_t * obj, bool en); /** * Set the base direction of the object + * @note This only works if LV_USE_BIDI is enabled. * @param obj pointer to an object * @param dir the new base direction. `LV_BIDI_DIR_LTR/RTL/AUTO/INHERIT` */