refactor: disp->display, res->result/resolution, hor/ver->horizontal/vertical, txt->text, angle->rotation, zoom->scale

This commit is contained in:
Gabor Kiss-Vamosi
2023-09-18 22:57:30 +02:00
parent 57a83cb2ad
commit 0721884ee9
202 changed files with 1894 additions and 1814 deletions
+4 -4
View File
@@ -209,7 +209,7 @@ void lv_mem_monitor_core(lv_mem_monitor_t * mon_p)
}
lv_res_t lv_mem_test_core(void)
lv_result_t lv_mem_test_core(void)
{
#if LV_USE_OS
lv_mutex_lock(&state.mutex);
@@ -219,7 +219,7 @@ lv_res_t lv_mem_test_core(void)
#if LV_USE_OS
lv_mutex_unlock(&state.mutex);
#endif
return LV_RES_INV;
return LV_RESULT_INVALID;
}
lv_pool_t * pool_p;
@@ -229,7 +229,7 @@ lv_res_t lv_mem_test_core(void)
#if LV_USE_OS
lv_mutex_unlock(&state.mutex);
#endif
return LV_RES_INV;
return LV_RESULT_INVALID;
}
}
@@ -237,7 +237,7 @@ lv_res_t lv_mem_test_core(void)
#if LV_USE_OS
lv_mutex_unlock(&state.mutex);
#endif
return LV_RES_OK;
return LV_RESULT_OK;
}
/**********************
+2 -2
View File
@@ -83,10 +83,10 @@ void lv_mem_monitor_core(lv_mem_monitor_t * mon_p)
}
lv_res_t lv_mem_test_core(void)
lv_result_t lv_mem_test_core(void)
{
/*Not supported*/
return LV_RES_OK;
return LV_RESULT_OK;
}
/**********************
+3 -3
View File
@@ -40,7 +40,7 @@ void * lv_malloc_core(size_t size);
void * lv_realloc_core(void * p, size_t new_size);
void lv_free_core(void * p);
void lv_mem_monitor_core(lv_mem_monitor_t * mon_p);
lv_res_t lv_mem_test_core(void);
lv_result_t lv_mem_test_core(void);
/**********************
@@ -139,11 +139,11 @@ void * lv_realloc(void * data_p, size_t new_size)
return new_p;
}
lv_res_t lv_mem_test(void)
lv_result_t lv_mem_test(void)
{
if(zero_mem != ZERO_MEM_SENTINEL) {
LV_LOG_WARN("zero_mem is written");
return LV_RES_INV;
return LV_RESULT_INVALID;
}
return lv_mem_test_core();
+3 -3
View File
@@ -114,13 +114,13 @@ void * lv_realloc_core(void * p, size_t new_size);
void lv_mem_monitor_core(lv_mem_monitor_t * mon_p);
lv_res_t lv_mem_test_core(void);
lv_result_t lv_mem_test_core(void);
/**
* @brief Tests the memory allocation system by allocating and freeing a block of memory.
* @return LV_RES_OK if the memory allocation system is working properly, or LV_RES_INV if there is an error.
* @return LV_RESULT_OK if the memory allocation system is working properly, or LV_RESULT_INVALID if there is an error.
*/
lv_res_t lv_mem_test(void);
lv_result_t lv_mem_test(void);
/**
* Give information about the work memory of dynamic allocation
@@ -83,10 +83,10 @@ void lv_mem_monitor_core(lv_mem_monitor_t * mon_p)
}
lv_res_t lv_mem_test_core(void)
lv_result_t lv_mem_test_core(void)
{
/*Not supported*/
return LV_RES_OK;
return LV_RESULT_OK;
}
/**********************