frob fontselector

This commit is contained in:
Stefan `Sec` Zehl 2011-08-02 21:23:10 +02:00
parent d76bf573d0
commit f57e0a9e90
1 changed files with 6 additions and 5 deletions

View File

@ -43,7 +43,7 @@ void fancyNickname(void) {
void init_nick(void){ void init_nick(void){
readFile("nick.cfg",GLOBAL(nickname),MAXNICK); readFile("nick.cfg",GLOBAL(nickname),MAXNICK);
// readFile("font.cfg",GLOBAL(nickfont),FILENAMELEN); readFile("font.cfg",GLOBAL(nickfont),FILENAMELEN);
}; };
//# MENU nick editNick //# MENU nick editNick
@ -60,13 +60,14 @@ void doFont(void){
lcdPrintln("No file selected."); lcdPrintln("No file selected.");
return; return;
}; };
writeFile("font.cfg",GLOBAL(nickname),strlen(GLOBAL(nickname)));
lcdClear(); lcdClear();
lcdPrintln(GLOBAL(nickfont));
setExtFont(GLOBAL(nickfont));
lcdPrintln("PUabc€");
setIntFont(&Font_7x8); setIntFont(&Font_7x8);
lcdPrintln("done."); lcdPrintln("Test:");
setExtFont(GLOBAL(nickfont));
lcdPrintln(GLOBAL(nickname));
lcdDisplay(); lcdDisplay();
setIntFont(&Font_7x8);
while(!getInputRaw())delayms(10); while(!getInputRaw())delayms(10);
}; };