mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
Fix a compilation error and build warning (#2172)
* fix(lv_obj): make lv_obj_update_layout() work with a const pointer * fix(lv_conf_internal): prevent URL being interpreted as comment warning
This commit is contained in:
parent
2dd9ca06d3
commit
e7c0401116
@ -256,7 +256,7 @@ void lv_obj_mark_layout_as_dirty(lv_obj_t * obj)
|
|||||||
lv_timer_pause(disp->refr_timer, false);
|
lv_timer_pause(disp->refr_timer, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void lv_obj_update_layout(lv_obj_t * obj)
|
void lv_obj_update_layout(const lv_obj_t * obj)
|
||||||
{
|
{
|
||||||
static bool mutex = false;
|
static bool mutex = false;
|
||||||
if(mutex) {
|
if(mutex) {
|
||||||
|
@ -128,7 +128,7 @@ void lv_obj_mark_layout_as_dirty(struct _lv_obj_t * obj);
|
|||||||
* Update the layout of an object.
|
* Update the layout of an object.
|
||||||
* @param obj pointer to an object whose children needs to be updated
|
* @param obj pointer to an object whose children needs to be updated
|
||||||
*/
|
*/
|
||||||
void lv_obj_update_layout(struct _lv_obj_t * obj);
|
void lv_obj_update_layout(const struct _lv_obj_t * obj);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Regsiter a new layout
|
* Regsiter a new layout
|
||||||
|
@ -882,7 +882,7 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*Pixel perfect monospace fonts
|
/*Pixel perfect monospace fonts
|
||||||
*http://pelulamu.net/unscii/*/
|
*http://pelulamu.net/unscii/ */
|
||||||
#ifndef LV_FONT_UNSCII_8
|
#ifndef LV_FONT_UNSCII_8
|
||||||
# ifdef CONFIG_LV_FONT_UNSCII_8
|
# ifdef CONFIG_LV_FONT_UNSCII_8
|
||||||
# define LV_FONT_UNSCII_8 CONFIG_LV_FONT_UNSCII_8
|
# define LV_FONT_UNSCII_8 CONFIG_LV_FONT_UNSCII_8
|
||||||
|
Loading…
x
Reference in New Issue
Block a user