diff --git a/lv_core/lv_group.h b/lv_core/lv_group.h index 34fd967a28..f8ff0dc4e5 100644 --- a/lv_core/lv_group.h +++ b/lv_core/lv_group.h @@ -65,7 +65,7 @@ lv_group_t * lv_group_create(void); * Delete a group object * @param group pointer to a group */ -void lv_group_del(lv_group_t * group) +void lv_group_del(lv_group_t * group); /** * Add an object to a group diff --git a/lv_misc/lv_font.c b/lv_misc/lv_font.c index 0745db4553..8fedb11328 100644 --- a/lv_misc/lv_font.c +++ b/lv_misc/lv_font.c @@ -292,7 +292,7 @@ const uint8_t * lv_font_get_bitmap_sparse(const lv_font_t * font, uint32_t unico * @param unicode_letter an unicode letter which width should be get * @return width of the gylph or -1 if not found */ -const int16_t lv_font_get_width_continuous(const lv_font_t * font, uint32_t unicode_letter) +int16_t lv_font_get_width_continuous(const lv_font_t * font, uint32_t unicode_letter) { /*Check the range*/ if(unicode_letter < font->unicode_first || unicode_letter > font->unicode_last) { @@ -309,7 +309,7 @@ const int16_t lv_font_get_width_continuous(const lv_font_t * font, uint32_t unic * @param unicode_letter an unicode letter which width should be get * @return width of the glyph or -1 if not found */ -const int16_t lv_font_get_width_sparse(const lv_font_t * font, uint32_t unicode_letter) +int16_t lv_font_get_width_sparse(const lv_font_t * font, uint32_t unicode_letter) { /*Check the range*/ if(unicode_letter < font->unicode_first || unicode_letter > font->unicode_last) return -1; diff --git a/lv_misc/lv_font.h b/lv_misc/lv_font.h index 107a34b2e5..462e38daf3 100644 --- a/lv_misc/lv_font.h +++ b/lv_misc/lv_font.h @@ -50,7 +50,7 @@ typedef struct _lv_font_struct const lv_font_glyph_dsc_t * glyph_dsc; const uint32_t * unicode_list; const uint8_t * (*get_bitmap)(const struct _lv_font_struct * ,uint32_t); /*Get a glyph's bitmap from a font*/ - const int16_t (*get_width)(const struct _lv_font_struct * ,uint32_t); /*Get a glyph's with with a given font*/ + int16_t (*get_width)(const struct _lv_font_struct * ,uint32_t); /*Get a glyph's with with a given font*/ struct _lv_font_struct * next_page; /*Pointer to a font extension*/ uint32_t bpp :4; /*Bit per pixel: 1, 2 or 4*/ }lv_font_t; @@ -126,7 +126,7 @@ const uint8_t * lv_font_get_bitmap_sparse(const lv_font_t * font, uint32_t unico * @param unicode_letter an unicode letter which width should be get * @return width of the gylph or -1 if not found */ -const int16_t lv_font_get_width_continuous(const lv_font_t * font, uint32_t unicode_letter); +int16_t lv_font_get_width_continuous(const lv_font_t * font, uint32_t unicode_letter); /** * Generic glyph width get function used in 'font->get_bitmap' when the font NOT contains all characters in the range (sparse) @@ -134,7 +134,7 @@ const int16_t lv_font_get_width_continuous(const lv_font_t * font, uint32_t unic * @param unicode_letter an unicode letter which width should be get * @return width of the glyph or -1 if not found */ -const int16_t lv_font_get_width_sparse(const lv_font_t * font, uint32_t unicode_letter); +int16_t lv_font_get_width_sparse(const lv_font_t * font, uint32_t unicode_letter); /********************** * MACROS