flight modes: use 2x5 table in portrait orientation

This commit is contained in:
Raphael Coeffic
2022-06-11 15:38:08 +02:00
committed by Raphael Coeffic
parent cf34d0519e
commit 5ceea0df0a
+14 -1
View File
@@ -294,8 +294,8 @@ ModelFlightModesPage::ModelFlightModesPage():
{
}
#if LCD_W > LCD_H
// FM table: 3 x 3
static const lv_coord_t fmt_col_dsc[] = {LV_GRID_FR(1),
LV_GRID_FR(1),
LV_GRID_FR(1),
@@ -305,6 +305,19 @@ static const lv_coord_t fmt_row_dsc[] = {LV_GRID_CONTENT,
LV_GRID_CONTENT,
LV_GRID_CONTENT,
LV_GRID_TEMPLATE_LAST};
#else
// FM table: 2 x 5
static const lv_coord_t fmt_col_dsc[] = {LV_GRID_FR(1),
LV_GRID_FR(1),
LV_GRID_TEMPLATE_LAST};
static const lv_coord_t fmt_row_dsc[] = {LV_GRID_CONTENT,
LV_GRID_CONTENT,
LV_GRID_CONTENT,
LV_GRID_CONTENT,
LV_GRID_CONTENT,
LV_GRID_TEMPLATE_LAST};
#endif
void ModelFlightModesPage::build(FormWindow * window)
{