mirror of
https://github.com/opentx/opentx.git
synced 2025-07-21 07:15:12 +03:00
[X7D/X9E] GVars display fixed (menus INPUTS / MIXES / OUTPUTS) (#4053)
This commit is contained in:
parent
2d0a8a9611
commit
b93b0a6500
6 changed files with 25 additions and 14 deletions
|
@ -20,10 +20,16 @@
|
|||
|
||||
#include "opentx.h"
|
||||
|
||||
void drawStringWithIndex(coord_t x, coord_t y, const pm_char * str, uint8_t idx, LcdFlags att)
|
||||
void drawStringWithIndex(coord_t x, coord_t y, const pm_char * str, uint8_t idx, LcdFlags flags)
|
||||
{
|
||||
lcdDrawText(x, y, str, att & ~LEADING0);
|
||||
lcdDrawNumber(lcdNextPos, y, idx, att|LEFT, 2);
|
||||
if (flags & RIGHT) {
|
||||
lcdDrawNumber(x, y, idx, flags);
|
||||
lcdDrawText(x-FW, y, str, flags & ~LEADING0);
|
||||
}
|
||||
else {
|
||||
lcdDrawText(x, y, str, flags & ~LEADING0);
|
||||
lcdDrawNumber(lcdNextPos, y, idx, flags|LEFT, 2);
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(CPUARM)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue