1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

minor fixes

This commit is contained in:
Gabor Kiss-Vamosi 2019-11-17 06:23:26 +01:00
parent 679419b151
commit d7232be181
3 changed files with 8 additions and 6 deletions

View File

@ -1200,7 +1200,9 @@ void lv_obj_set_ext_click_area(lv_obj_t * obj, lv_coord_t left, lv_coord_t right
void lv_obj_set_style(lv_obj_t * obj, const lv_style_t * style)
{
LV_ASSERT_OBJ(obj, LV_OBJX_NAME);
LV_ASSERT_STYLE(style);
if(style) {
LV_ASSERT_STYLE(style);
}
obj->style_p = style;

View File

@ -27,7 +27,7 @@ extern "C" {
* DEFINES
*********************/
#ifndef LV_DRAW_BUF_MAX_NUM
#define LV_DRAW_BUF_MAX_NUM 12
#define LV_DRAW_BUF_MAX_NUM 16
#endif
/**********************

View File

@ -127,9 +127,9 @@ static void label_init(void)
{
#if LV_USE_LABEL != 0
theme.style.label.prim = NULL;
theme.style.label.sec = NULL;
theme.style.label.hint = NULL;
theme.style.label.prim = &light_plain;
theme.style.label.sec = &light_plain;
theme.style.label.hint = &light_plain;
#endif
}
@ -145,7 +145,7 @@ static void img_init(void)
static void line_init(void)
{
#if LV_USE_LINE != 0
theme.style.line.decor = NULL;
theme.style.line.decor = &light_plain;
#endif
}