diff --git a/lvgl.h b/lvgl.h index f071833f2..07842034f 100644 --- a/lvgl.h +++ b/lvgl.h @@ -83,7 +83,6 @@ extern "C" { #define LVGL_VERSION_PATCH 0 #define LVGL_VERSION_INFO "dev" -#define LV_BUILD_TEST 1 /********************** * TYPEDEFS **********************/ diff --git a/src/lv_widgets/lv_imgbtn.h b/src/lv_widgets/lv_imgbtn.h index 4dfce48f3..f9eaf5143 100644 --- a/src/lv_widgets/lv_imgbtn.h +++ b/src/lv_widgets/lv_imgbtn.h @@ -73,7 +73,6 @@ lv_obj_t * lv_imgbtn_create(lv_obj_t * par, const lv_obj_t * copy); * Setter functions *====================*/ -#if LV_IMGBTN_TILED == 0 /** * Set images for a state of the image button * @param imgbtn pointer to an image button object @@ -81,7 +80,8 @@ lv_obj_t * lv_imgbtn_create(lv_obj_t * par, const lv_obj_t * copy); * @param src pointer to an image source (a C array or path to a file) */ void lv_imgbtn_set_src(lv_obj_t * imgbtn, lv_btn_state_t state, const void * src); -#else + +#if LV_IMGBTN_TILED /** * Set images for a state of the image button * @param imgbtn pointer to an image button object @@ -93,7 +93,7 @@ void lv_imgbtn_set_src(lv_obj_t * imgbtn, lv_btn_state_t state, const void * src * @param src_right pointer to an image source for the right side of the button (a C array or path * to a file) */ -void lv_imgbtn_set_src(lv_obj_t * imgbtn, lv_btn_state_t state, const void * src_left, const void * src_mid, +void lv_imgbtn_set_src_tiled(lv_obj_t * imgbtn, lv_btn_state_t state, const void * src_left, const void * src_mid, const void * src_right); #endif