Skip to content

Revert "lv_dropdown_set_selected in LVGL v9.3 has additional arg" #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions src/eez/flow/components/lvgl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,7 @@ void executeLVGLComponent(FlowState *flowState, unsigned componentIndex) {
} else if (specific->property == BASIC_OPACITY) {
lv_obj_set_style_opa(target, intValue, 0);
} else if (specific->property == DROPDOWN_SELECTED) {
#if LVGL_VERSION_MAJOR >= 9 && LVGL_VERSION_MINOR >= 3
lv_dropdown_set_selected(target, intValue, LV_ANIM_OFF);
#else
lv_dropdown_set_selected(target, intValue);
#endif
} else if (specific->property == IMAGE_ANGLE) {
lv_img_set_angle(target, intValue);
} else if (specific->property == IMAGE_ZOOM) {
Expand Down Expand Up @@ -783,15 +779,10 @@ ACTION_START(dropdownSetSelected)
WIDGET_PROP(obj);
UINT32_PROP(value);
#if LVGL_VERSION_MAJOR >= 9
#if LVGL_VERSION_MINOR >= 3
lv_dropdown_set_selected(obj, value, LV_ANIM_OFF);
#else
lv_dropdown_set_selected(obj, value);
#endif
#else
lv_dropdown_set_selected(obj, (uint16_t)value);
#endif

ACTION_END

ACTION_START(imageSetSrc)
Expand Down