Improve mixer screen layout (fix #2785)
This commit is contained in:
@@ -692,8 +692,8 @@ void putsMixerSource(coord_t x, coord_t y, uint32_t idx, LcdFlags att)
|
|||||||
else if (idx <= MIXSRC_LAST_CH) {
|
else if (idx <= MIXSRC_LAST_CH) {
|
||||||
putsStrIdx(x, y, STR_CH, idx-MIXSRC_CH1+1, att);
|
putsStrIdx(x, y, STR_CH, idx-MIXSRC_CH1+1, att);
|
||||||
if (ZEXIST(g_model.limitData[idx-MIXSRC_CH1].name) && (att & STREXPANDED)) {
|
if (ZEXIST(g_model.limitData[idx-MIXSRC_CH1].name) && (att & STREXPANDED)) {
|
||||||
lcd_putcAtt(lcdLastPos, y, ' ', att);
|
lcd_putcAtt(lcdLastPos, y, ' ', att|SMLSIZE);
|
||||||
lcd_putsnAtt(lcdLastPos+3, y, g_model.limitData[idx-MIXSRC_CH1].name, LEN_CHANNEL_NAME, ZCHAR|att);
|
lcd_putsnAtt(lcdLastPos+3, y, g_model.limitData[idx-MIXSRC_CH1].name, LEN_CHANNEL_NAME, ZCHAR|att|SMLSIZE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (idx <= MIXSRC_LAST_GVAR)
|
else if (idx <= MIXSRC_LAST_GVAR)
|
||||||
|
|||||||
@@ -652,7 +652,7 @@ void displayHeaderChannelName(uint8_t ch)
|
|||||||
{
|
{
|
||||||
uint8_t len = zlen(g_model.limitData[ch].name, sizeof(g_model.limitData[ch].name));
|
uint8_t len = zlen(g_model.limitData[ch].name, sizeof(g_model.limitData[ch].name));
|
||||||
if (len) {
|
if (len) {
|
||||||
lcd_putsnAtt(70, 1, g_model.limitData[ch].name, len, ZCHAR|SMLSIZE);
|
lcd_putsnAtt(80, 1, g_model.limitData[ch].name, len, ZCHAR|SMLSIZE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -837,14 +837,14 @@ void menuModelExpoMix(uint8_t expo, uint8_t event)
|
|||||||
// Value
|
// Value
|
||||||
uint8_t index = expoAddress(s_currIdx)->chn;
|
uint8_t index = expoAddress(s_currIdx)->chn;
|
||||||
if (!s_currCh) {
|
if (!s_currCh) {
|
||||||
lcd_outdezAtt(120, 2, calcRESXto1000(anas[index]), PREC1|TINSIZE);
|
lcd_outdezAtt(127, 2, calcRESXto1000(anas[index]), PREC1|TINSIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
SIMPLE_MENU(STR_MENUINPUTS, menuTabModel, e_InputsAll, s_maxLines);
|
SIMPLE_MENU(STR_MENUINPUTS, menuTabModel, e_InputsAll, s_maxLines);
|
||||||
|
|
||||||
// Gauge
|
// Gauge
|
||||||
if (!s_currCh) {
|
if (!s_currCh) {
|
||||||
drawGauge(120, 1, 58, 6, anas[index], 1024);
|
drawGauge(127, 1, 58, 6, anas[index], 1024);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -855,14 +855,14 @@ void menuModelExpoMix(uint8_t expo, uint8_t event)
|
|||||||
uint8_t index = mixAddress(s_currIdx)->destCh;
|
uint8_t index = mixAddress(s_currIdx)->destCh;
|
||||||
if (!s_currCh) {
|
if (!s_currCh) {
|
||||||
displayHeaderChannelName(index);
|
displayHeaderChannelName(index);
|
||||||
lcd_outdezAtt(120, 2, calcRESXto1000(ex_chans[index]), PREC1|TINSIZE);
|
lcd_outdezAtt(127, 2, calcRESXto1000(ex_chans[index]), PREC1|TINSIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
SIMPLE_MENU(STR_MIXER, menuTabModel, e_MixAll, s_maxLines);
|
SIMPLE_MENU(STR_MIXER, menuTabModel, e_MixAll, s_maxLines);
|
||||||
|
|
||||||
// Gauge
|
// Gauge
|
||||||
if (!s_currCh) {
|
if (!s_currCh) {
|
||||||
drawGauge(120, 1, 58, 6, ex_chans[index], 1024);
|
drawGauge(127, 1, 58, 6, ex_chans[index], 1024);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user