Make textlines 1, 3, 4, 6, 7, 66, 282, 284 \n compatible

This commit is contained in:
Sjef Verhoeven PE5PVB
2025-01-30 16:11:00 +01:00
parent 649c94671b
commit cc14213fb7
3 changed files with 16 additions and 10 deletions

View File

@@ -5545,7 +5545,10 @@ void Infoboxprint(const char* input) {
if (menu) {
tftPrint(0, line1, 155, 48, ActiveColor, ActiveColorSmooth, 28);
tftPrint(0, line2, 155, 78, ActiveColor, ActiveColorSmooth, 28);
} else {
} else if (setupmode) {
tftPrint(0, line1, 155, 40, ActiveColor, ActiveColorSmooth, 28);
tftPrint(0, line2, 155, 70, ActiveColor, ActiveColorSmooth, 28);
} else {
FrequencySprite.drawString(line1, 100, 5);
FrequencySprite.drawString(line2, 100, 25);
}
@@ -5554,6 +5557,8 @@ void Infoboxprint(const char* input) {
} else {
if (menu) {
tftPrint(0, input, 155, 78, ActiveColor, ActiveColorSmooth, 28);
} else if (setupmode) {
tftPrint(0, input, 155, 70, ActiveColor, ActiveColorSmooth, 28);
} else {
FrequencySprite.drawString(input, 100, 15);
}

View File

@@ -47,6 +47,7 @@ extern bool scandxmode;
extern bool scanholdonsignal;
extern bool scanmem;
extern bool scanmute;
extern bool setupmode;
extern bool showclock;
extern bool showlongps;
extern bool softmuteam;