From 3b3b527abeb67ef258e1f082db88b30afce66d98 Mon Sep 17 00:00:00 2001 From: 3djc <5167938+3djc@users.noreply.github.com> Date: Wed, 3 Jun 2026 05:33:48 +0200 Subject: [PATCH] fix(color): add lvgl LV_USE_LARGE_COORD support (#7358) --- radio/src/gui/colorlcd/libui/keyboard_base.cpp | 2 +- radio/src/gui/colorlcd/lv_conf.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/radio/src/gui/colorlcd/libui/keyboard_base.cpp b/radio/src/gui/colorlcd/libui/keyboard_base.cpp index 20c3dfba9..353f71ebd 100644 --- a/radio/src/gui/colorlcd/libui/keyboard_base.cpp +++ b/radio/src/gui/colorlcd/libui/keyboard_base.cpp @@ -184,7 +184,7 @@ void Keyboard::setField(FormField* newField) lv_obj_get_coords(obj, &coords); // 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 scroll_pos = lv_obj_get_scroll_y(fieldContainer->getLvObj()); diff --git a/radio/src/gui/colorlcd/lv_conf.h b/radio/src/gui/colorlcd/lv_conf.h index 31f427879..51f2cd9ad 100644 --- a/radio/src/gui/colorlcd/lv_conf.h +++ b/radio/src/gui/colorlcd/lv_conf.h @@ -395,7 +395,7 @@ #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 +#define LV_USE_LARGE_COORD 1 /*================== * FONT USAGE