Font update

Misc bug fixes on fontloader
This commit is contained in:
Sjef Verhoeven PE5PVB
2024-05-17 16:12:42 +02:00
parent 1b7d125618
commit b5b7ac9042
6 changed files with 19216 additions and 19101 deletions
+5178 -4888
View File
File diff suppressed because it is too large Load Diff
+13980 -14177
View File
File diff suppressed because it is too large Load Diff
+6 -4
View File
@@ -2021,7 +2021,7 @@ void MenuUp() {
case ITEM1:
language ++;
if (language == (sizeof (myLanguage) / sizeof (myLanguage[0]))) language = 0;
UpdateFonts(2);
UpdateFonts(1);
OneBigLineSprite.drawString(myLanguage[language][0], 135, 0);
OneBigLineSprite.pushSprite(24, 118);
break;
@@ -2868,7 +2868,7 @@ void MenuDown() {
case ITEM1:
language --;
if (language > (sizeof (myLanguage) / sizeof (myLanguage[0]))) language = (sizeof (myLanguage) / sizeof (myLanguage[0])) - 1;
UpdateFonts(2);
UpdateFonts(1);
OneBigLineSprite.drawString(myLanguage[language][0], 135, 0);
OneBigLineSprite.pushSprite(24, 118);
break;
@@ -4154,7 +4154,8 @@ void DoMenu() {
tftPrint(0, "http://192.168.4.1", 155, 174, PrimaryColor, PrimaryColorSmooth, 16);
char key [9];
XDRGTK_key.toCharArray(key, 9);
UpdateFonts(3);
UpdateFonts(2);
UpdateSprites(1);
WiFiConnectParam XDRGTK_key_text("Set XDRGTK Password: (max 8 characters)");
WiFiConnectParam XDRGTK_key_input("XDRGTK_key", "Password", key, 9);
wc.addParameter(&XDRGTK_key_text);
@@ -4163,7 +4164,8 @@ void DoMenu() {
XDRGTK_key = XDRGTK_key_input.getValue();
EEPROM.writeString(EE_STRING_XDRGTK_KEY, XDRGTK_key);
EEPROM.commit();
UpdateFonts(2);
UpdateSprites(0);
UpdateFonts(1);
wifi = true;
tryWiFi();
delay(2000);
+2 -1
View File
@@ -229,7 +229,8 @@ extern void TuneUp();
extern void endMenu();
extern void startFMDXScan();
extern void DoMemoryPosTune();
extern void UpdateFonts(bool mode);
extern void UpdateFonts(byte mode);
extern void UpdateSprites(bool mode);
extern void tftPrint(int8_t offset, const String & text, int16_t x, int16_t y, int color, int smoothcolor, uint8_t fontsize);
extern void setAutoSpeedSPI();
extern void showAutoSquelch(bool mode);
+1 -1
View File
@@ -460,7 +460,7 @@ static const char* const myLanguage[18][228] PROGMEM = {
"Signaal", // 221
"Geen geluid\ntijdens scannen", // 222
"AIR", // 223
"5 sec. bandbutton ingedrukt", // 224
"5 sec.\nbandbutton ingedrukt", // 224
"Uitschakelen", // 225
"Scherm uit", // 226
"Geen functie" // 227