refactor: remove LV_USE_LARGE_COORD, always use int32_t as lv_coord_t

This commit is contained in:
Gabor Kiss-Vamosi
2023-10-31 19:23:24 +01:00
parent 50d01cec3d
commit d456b1cb4d
6 changed files with 3 additions and 26 deletions
-3
View File
@@ -340,9 +340,6 @@
*should also appear on LVGL binding API such as Micropython.*/
#define LV_EXPORT_CONST_INT(int_value) struct _silence_gcc_warning /*The default value just prevents GCC warning*/
/*Extend the default -32k..32k coordinate range to -4M..4M by using int32_t for coordinates instead of int16_t*/
#define LV_USE_LARGE_COORD 0
/*==================
* FONT USAGE
*===================*/
-3
View File
@@ -316,9 +316,6 @@
*should also appear on LVGL binding API such as Micropython.*/
#define LV_EXPORT_CONST_INT(int_value) struct _silence_gcc_warning /*The default value just prevents GCC warning*/
/*Extend the default -32k..32k coordinate range to -4M..4M by using int32_t for coordinates instead of int16_t*/
#define LV_USE_LARGE_COORD 0
/* Use `float` as `lv_value_precise_t` */
#define LV_USE_FLOAT 0
-9
View File
@@ -876,15 +876,6 @@
#endif
#endif
/*Extend the default -32k..32k coordinate range to -4M..4M by using int32_t for coordinates instead of int16_t*/
#ifndef LV_USE_LARGE_COORD
#ifdef CONFIG_LV_USE_LARGE_COORD
#define LV_USE_LARGE_COORD CONFIG_LV_USE_LARGE_COORD
#else
#define LV_USE_LARGE_COORD 0
#endif
#endif
/* Use `float` as `lv_value_precise_t` */
#ifndef LV_USE_FLOAT
#ifdef CONFIG_LV_USE_FLOAT
+2 -5
View File
@@ -21,16 +21,13 @@ extern "C" {
* DEFINES
*********************/
#if LV_USE_LARGE_COORD
typedef int32_t lv_coord_t;
#else
typedef int16_t lv_coord_t;
#endif
/**********************
* TYPEDEFS
**********************/
typedef int32_t lv_coord_t;
/**
* Represents a point on the screen.
*/
+1 -5
View File
@@ -22,11 +22,7 @@ extern "C" {
*********************/
/**Default value of points. Can be used to not draw a point*/
#if LV_USE_LARGE_COORD
#define LV_CHART_POINT_NONE (INT32_MAX)
#else
#define LV_CHART_POINT_NONE (INT16_MAX)
#endif
#define LV_CHART_POINT_NONE (INT32_MAX)
LV_EXPORT_CONST_INT(LV_CHART_POINT_NONE);
/**********************
-1
View File
@@ -12,7 +12,6 @@
#define LV_USE_ASSERT_MEM_INTEGRITY 1
#define LV_USE_ASSERT_OBJ 1
#define LV_USE_ASSERT_STYLE 1
#define LV_USE_LARGE_COORD 1
#define LV_USE_FLOAT 1
#define LV_FONT_MONTSERRAT_8 1