mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 17:25:13 +03:00
Version page realigned, 10B saved
\036 -Newline code for all platforms stamp strings joined together to vers_stamp
This commit is contained in:
parent
f676589989
commit
5d9293e8f5
4 changed files with 11 additions and 21 deletions
|
@ -361,9 +361,7 @@ void lcd_putsiAtt(xcoord_t x, uint8_t y,const pm_char * s,uint8_t idx, LcdFlags
|
|||
|
||||
void lcd_putsnAtt(xcoord_t x, uint8_t y, const pm_char * s, uint8_t len, LcdFlags mode)
|
||||
{
|
||||
#if defined(CPUARM)
|
||||
xcoord_t orig_x = x;
|
||||
#endif
|
||||
bool setx = false;
|
||||
while(len--) {
|
||||
unsigned char c;
|
||||
|
@ -395,16 +393,16 @@ void lcd_putsnAtt(xcoord_t x, uint8_t y, const pm_char * s, uint8_t len, LcdFlag
|
|||
else if (c == 0x1F) { //X-coord prefix
|
||||
setx = true;
|
||||
}
|
||||
#if defined(CPUARM)
|
||||
else if (c == 0x1E) { //NEWLINE
|
||||
x = orig_x;
|
||||
y += FH;
|
||||
#if defined(CPUARM)
|
||||
if (mode & DBLSIZE) y += FH;
|
||||
else if (mode & MIDSIZE) y += 4;
|
||||
else if (mode & SMLSIZE) y--;
|
||||
#endif
|
||||
if (y >= LCD_H) break;
|
||||
}
|
||||
#endif
|
||||
else {
|
||||
x += (c*FW/2); //EXTENDED SPACE
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue