fix(color): add lvgl LV_USE_LARGE_COORD support (#7358)
This commit is contained in:
@@ -184,7 +184,7 @@ void Keyboard::setField(FormField* newField)
|
|||||||
lv_obj_get_coords(obj, &coords);
|
lv_obj_get_coords(obj, &coords);
|
||||||
|
|
||||||
// place keyboard bellow the field with some margin
|
// place keyboard bellow the field with some margin
|
||||||
setTop(max(coords.y2 + 21, LCD_H - height()));
|
setTop(max((coord_t)coords.y2 + 21, LCD_H - height()));
|
||||||
|
|
||||||
// save scroll position
|
// save scroll position
|
||||||
scroll_pos = lv_obj_get_scroll_y(fieldContainer->getLvObj());
|
scroll_pos = lv_obj_get_scroll_y(fieldContainer->getLvObj());
|
||||||
|
|||||||
@@ -395,7 +395,7 @@
|
|||||||
#define LV_EXPORT_CONST_INT(int_value) struct _silence_gcc_warning /*The default value just prevents GCC warning*/
|
#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*/
|
/*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
|
#define LV_USE_LARGE_COORD 1
|
||||||
|
|
||||||
/*==================
|
/*==================
|
||||||
* FONT USAGE
|
* FONT USAGE
|
||||||
|
|||||||
Reference in New Issue
Block a user