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
+6 -1
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);
}