minor fixes

This commit is contained in:
Gabor Kiss-Vamosi
2021-03-25 19:59:23 +01:00
parent 35c55291e3
commit 63bc72e53a
10 changed files with 54 additions and 37 deletions

View File

@@ -22,6 +22,7 @@
#include "../misc/lv_math.h"
#include "../misc/lv_log.h"
#include "../hal/lv_hal.h"
#include "../extra/layouts/lv_layouts.h"
#include <stdint.h>
#include <string.h>
@@ -155,6 +156,9 @@ void lv_init(void)
LV_LOG_WARN("Log level is set the Trace which makes LVGL much slower")
#endif
lv_grid_init();
lv_flex_init();
lv_initialized = true;
LV_LOG_TRACE("finished");
@@ -585,6 +589,11 @@ bool lv_obj_has_class(const lv_obj_t * obj, const lv_obj_class_t * class_p)
return false;
}
const lv_obj_class_t * lv_obj_get_class(const lv_obj_t * obj)
{
return obj->class_p;
}
bool lv_obj_is_valid(const lv_obj_t * obj)
{
lv_disp_t * disp = lv_disp_get_next(NULL);