mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
minor fixes
This commit is contained in:
parent
57220246e9
commit
f545db3117
@ -179,6 +179,13 @@ void lv_disp_refr_task(lv_task_t * task)
|
||||
|
||||
disp_refr = task->user_data;
|
||||
|
||||
#if LV_USE_PERF_MONITOR == 0
|
||||
/* Ensure the task does not run again automatically.
|
||||
* This is done before refreshing in case refreshing invalidates something else.
|
||||
*/
|
||||
lv_task_set_prio(task, LV_TASK_PRIO_OFF);
|
||||
#endif
|
||||
|
||||
/*Do nothing if there is no active screen*/
|
||||
if(disp_refr->act_scr == NULL) {
|
||||
disp_refr->inv_p = 0;
|
||||
@ -273,13 +280,6 @@ void lv_disp_refr_task(lv_task_t * task)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if LV_USE_PERF_MONITOR == 0
|
||||
/* Ensure the task does not run again automatically.
|
||||
* This is done before refreshing in case refreshing invalidates something else.
|
||||
*/
|
||||
lv_task_set_prio(task, LV_TASK_PRIO_OFF);
|
||||
#endif
|
||||
|
||||
LV_LOG_TRACE("lv_refr_task: ready");
|
||||
}
|
||||
|
||||
|
@ -17,6 +17,7 @@ extern "C" {
|
||||
#include <stdbool.h>
|
||||
#include "lv_mem.h"
|
||||
#include "lv_ll.h"
|
||||
#include "lv_task.h"
|
||||
#include "../lv_draw/lv_img_cache.h"
|
||||
#include "../lv_draw/lv_draw.h"
|
||||
|
||||
@ -35,7 +36,7 @@ extern "C" {
|
||||
f(lv_ll_t, _lv_img_defoder_ll) \
|
||||
f(lv_ll_t, _lv_obj_style_trans_ll) \
|
||||
f(lv_img_cache_entry_t*, _lv_img_cache_array) \
|
||||
f(void*, _lv_task_act) \
|
||||
f(lv_task_t*, _lv_task_act) \
|
||||
f(lv_mem_buf_arr_t , _lv_mem_buf) \
|
||||
|
||||
#define LV_DEFINE_ROOT(root_type, root_name) root_type root_name;
|
||||
|
Loading…
x
Reference in New Issue
Block a user