[Horus] Cosmetics
This commit is contained in:
@@ -82,7 +82,7 @@ bool menuModelFlightModesAll(evt_t event)
|
||||
|
||||
int sub = menuVerticalPosition;
|
||||
|
||||
horzpos_t posHorz = menuHorizontalPosition;
|
||||
int posHorz = menuHorizontalPosition;
|
||||
if (sub==0 && posHorz == 1) {
|
||||
REPEAT_LAST_CURSOR_MOVE(0);
|
||||
posHorz = menuHorizontalPosition;
|
||||
|
||||
@@ -84,7 +84,7 @@ bool menuModelLogicalSwitches(evt_t event)
|
||||
|
||||
int k = 0;
|
||||
int sub = menuVerticalPosition;
|
||||
horzpos_t horz = menuHorizontalPosition;
|
||||
int horz = menuHorizontalPosition;
|
||||
|
||||
if (sub>= 0 && horz>=0) {
|
||||
drawColumnHeader(STR_CSW_HEADERS, horz);
|
||||
|
||||
@@ -178,7 +178,7 @@ int getSwitchWarningsCount()
|
||||
|
||||
bool menuModelSetup(evt_t event)
|
||||
{
|
||||
horzpos_t l_posHorz = menuHorizontalPosition;
|
||||
int l_posHorz = menuHorizontalPosition;
|
||||
bool CURSOR_ON_CELL = (menuHorizontalPosition >= 0);
|
||||
|
||||
MENU(STR_MENUSETUP, LBM_MODEL_ICONS, menuTabModel, e_ModelSetup, ITEM_MODEL_SETUP_MAX,
|
||||
@@ -633,7 +633,7 @@ bool menuModelSetup(evt_t event)
|
||||
}
|
||||
}
|
||||
else {
|
||||
horzpos_t l_posHorz = menuHorizontalPosition;
|
||||
int l_posHorz = menuHorizontalPosition;
|
||||
coord_t xOffsetBind = MODEL_SETUP_BIND_OFS;
|
||||
if (IS_MODULE_XJT(moduleIdx) && IS_D8_RX(moduleIdx)) {
|
||||
xOffsetBind = 0;
|
||||
|
||||
@@ -35,13 +35,12 @@
|
||||
#define COLUMN_HEADER_X 150
|
||||
|
||||
typedef evt_t & check_event_t;
|
||||
#define horzpos_t int8_t
|
||||
|
||||
extern uint8_t menuPageIndex;
|
||||
extern uint8_t menuPageCount;
|
||||
extern uint16_t linesCount;
|
||||
extern int menuVerticalPosition;
|
||||
extern horzpos_t menuHorizontalPosition;
|
||||
extern int menuHorizontalPosition;
|
||||
extern int menuVerticalOffset;
|
||||
extern uint8_t calibrationState;
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
int menuVerticalOffset;
|
||||
int menuVerticalPosition;
|
||||
horzpos_t menuHorizontalPosition;
|
||||
int menuHorizontalPosition;
|
||||
int8_t s_editMode;
|
||||
uint8_t noHighlightCounter;
|
||||
uint8_t calibrationState; // TODO rename this variable
|
||||
|
||||
Reference in New Issue
Block a user