mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-23 07:46:36 +08:00
refactor: remove LV_USE_LARGE_COORD, always use int32_t as lv_coord_t
This commit is contained in:
@@ -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
|
||||
*===================*/
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -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);
|
||||
|
||||
/**********************
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user