From e60482ca0e97d9e51d5b5cbcbcfd87fdb3a4d369 Mon Sep 17 00:00:00 2001 From: Martin Herancourt Date: Tue, 11 Dec 2018 10:21:22 +0100 Subject: [PATCH] minor fixes --- lv_objx/lv_list.c | 15 ++++++++------- lv_themes/lv_theme_alien.c | 2 -- lv_themes/lv_theme_mono.c | 4 +--- 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/lv_objx/lv_list.c b/lv_objx/lv_list.c index dc8213e58..a9c4cd84f 100644 --- a/lv_objx/lv_list.c +++ b/lv_objx/lv_list.c @@ -391,10 +391,10 @@ lv_obj_t * lv_list_get_btn_img(const lv_obj_t * btn) } /** - * Get the next button from list. (Starts from the bottom button) + * Get the previous button from list. (Starts from the top button) * @param list pointer to a list object - * @param prev_btn pointer to button. Search the next after it. - * @return pointer to the next button or NULL when no more buttons + * @param prev_btn pointer to button. Search the previous before it. + * @return pointer to the previous button or NULL when no more buttons */ lv_obj_t * lv_list_get_prev_btn(const lv_obj_t * list, lv_obj_t * prev_btn) { @@ -416,11 +416,12 @@ lv_obj_t * lv_list_get_prev_btn(const lv_obj_t * list, lv_obj_t * prev_btn) } -/** - * Get the previous button from list. (Starts from the top button) + + /** + * Get the next button from list. (Starts from the bottom button) * @param list pointer to a list object - * @param prev_btn pointer to button. Search the previous before it. - * @return pointer to the previous button or NULL when no more buttons + * @param prev_btn pointer to button. Search the next after it. + * @return pointer to the next button or NULL when no more buttons */ lv_obj_t * lv_list_get_next_btn(const lv_obj_t * list, lv_obj_t * prev_btn) { diff --git a/lv_themes/lv_theme_alien.c b/lv_themes/lv_theme_alien.c index 386efb61e..d271f8610 100644 --- a/lv_themes/lv_theme_alien.c +++ b/lv_themes/lv_theme_alien.c @@ -28,8 +28,6 @@ static uint16_t _hue; static lv_font_t * _font; -static lv_font_t * _font; -static lv_font_t * _font; static lv_theme_t theme; static lv_style_t def; diff --git a/lv_themes/lv_theme_mono.c b/lv_themes/lv_theme_mono.c index 4fee86a58..f456caec1 100644 --- a/lv_themes/lv_theme_mono.c +++ b/lv_themes/lv_theme_mono.c @@ -36,7 +36,6 @@ static lv_style_t light_frame; static lv_style_t dark_frame; /*Saved input parameters*/ -static uint16_t _hue; static lv_font_t * _font; @@ -421,7 +420,7 @@ static void win_init(void) /** * Initialize the mono theme - * @param hue [0..360] hue value from HSV color space to define the theme's base color + * @param hue [0..360] hue value from HSV color space to define the theme's base color; is not used in lv_theme_mono * @param font pointer to a font (NULL to use the default) * @return pointer to the initialized theme */ @@ -429,7 +428,6 @@ lv_theme_t * lv_theme_mono_init(uint16_t hue, lv_font_t * font) { if(font == NULL) font = LV_FONT_DEFAULT; - _hue = hue; _font = font; /*For backward compatibility initialize all theme elements with a default style */