|
Rockbox mail archiveSubject: Fwd: bug in keyboard, after music playedFwd: bug in keyboard, after music played
From: Björn Stenberg <bjorn_at_haxx.se>
Date: Sat, 15 Mar 2003 14:53:52 +0100 ----- Forwarded message from Alexander Eickhoff <alex_at_linux01.org> ----- Date: Sat, 15 Mar 2003 11:20:32 +0100 From: Alexander Eickhoff <alex_at_linux01.org> To: Björn Stenberg <bjorn_at_haxx.se> Subject: bug in keyboard, after music played hy björn, the keyboard function makes trouble . the string outline is to long, so ">" is overwritten. and strlen is 23 !?! normal with my fonts (max_chars - 2 )= 16 before i play music strlen is every time 16 and all is ok... now i play music... len = 20. I am at my wit's end - alex alex_at_robby:~/rockbox/r/build-dir> diff -u ../apps/recorder/keyboard.c.org ../apps/recorder/keyboard.c --- ../apps/recorder/keyboard.c.org 2003-03-15 10:58:45.000000000 +0100 +++ ../apps/recorder/keyboard.c 2003-03-15 11:01:55.000000000 +0100 _at__at_ -81,6 +81,7 _at__at_ char* line[KEYBOARD_LINES]; char outline[256]; + char buff[16]; char c = 0; struct font* font = font_get(FONT_SYSFIXED); _at__at_ -159,6 +160,8 _at__at_ } lcd_putsxy(font_w,main_y,outline); + snprintf(buff, sizeof buff, "len(outl): %d",strlen(outline)); + lcd_putsxy(4, i * font_h, buff); /* cursor */ lcd_drawline(curpos, main_y, curpos, main_y + font_h); alex_at_robby:~/rockbox/r/build-dir> -- alex eickhoff, am kampe 14, d-37130 groß lengden phone: +49 5508 92208, mobphone +49 170 8356528 mailto: alex_at_linux01.org gpg info: pub 1024D/658BED45 2002-04-12 Alexander Eickhoff (sdt-key) <alex_at_linux01.org> Fingerprint: 29D0 4477 4246 8841 0A98 20D4 31ED D122 658B ED45 ----- End forwarded message ----- -- BjörnReceived on 2003-03-15 Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy |