summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2006-08-15 20:05:09 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2006-08-15 20:05:09 +0000
commit99bb00bf252e53b5329f9a21fef77e8e6fed727f (patch)
treee03bf6745c0503e8cbcf88bad388fa41235f40a2
parent45c57e50b252e1fb176cace1a9b82268322a72f0 (diff)
downloadrockbox-99bb00bf252e53b5329f9a21fef77e8e6fed727f.tar.gz
rockbox-99bb00bf252e53b5329f9a21fef77e8e6fed727f.zip
Removed annoying debug output
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10593 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/drivers/lcd-player.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/firmware/drivers/lcd-player.c b/firmware/drivers/lcd-player.c
index 7da345279d..16012470fa 100644
--- a/firmware/drivers/lcd-player.c
+++ b/firmware/drivers/lcd-player.c
@@ -207,8 +207,6 @@ void xlcd_update(void)
207 int pat; 207 int pat;
208 pat=lcd_get_free_pat(map_ch); 208 pat=lcd_get_free_pat(map_ch);
209 if (pat<0) { 209 if (pat<0) {
210 DEBUGF("Substitute for %02x (map 0x%02x)"
211 " is used.\n", ch, map_ch);
212 /* Find substitute char */ 210 /* Find substitute char */
213 map_ch= 211 map_ch=
214 lcd_player_extended_lcd_to_rocklatin1[map_ch]; 212 lcd_player_extended_lcd_to_rocklatin1[map_ch];
@@ -278,7 +276,6 @@ void lcd_clear_display(void)
278{ 276{
279 int i; 277 int i;
280 bool update=false; 278 bool update=false;
281 DEBUGF("lcd_clear_display()\n");
282 lcd_stop_scroll(); 279 lcd_stop_scroll();
283 cursor.len=0; /* Stop cursor */ 280 cursor.len=0; /* Stop cursor */
284 for (i=0;i<22;i++) 281 for (i=0;i<22;i++)
@@ -290,24 +287,12 @@ void lcd_clear_display(void)
290static void lcd_puts_cont_scroll(int x, int y, const unsigned char *string) 287static void lcd_puts_cont_scroll(int x, int y, const unsigned char *string)
291{ 288{
292 bool update=false; 289 bool update=false;
293 DEBUGF("lcd_puts_cont_scroll(%d, %d, \"", x, y);
294 290
295 for (; *string && x<11; x++) 291 for (; *string && x<11; x++)
296 { 292 {
297#ifdef DEBUGF
298 if (*string>=32 && *string<128)
299 {
300 DEBUGF("%c", *string);
301 }
302 else
303 {
304 DEBUGF("(0x%02x)", *string);
305 }
306#endif
307 /* We should check if char is over 256 */ 293 /* We should check if char is over 256 */
308 update|=lcdx_putc(x, y, *(unsigned char*)string++); 294 update|=lcdx_putc(x, y, *(unsigned char*)string++);
309 } 295 }
310 DEBUGF("\")\n");
311 296
312 for (; x<11; x++) 297 for (; x<11; x++)
313 update|=lcdx_putc(x, y, ' '); 298 update|=lcdx_putc(x, y, ' ');
@@ -334,7 +319,6 @@ void lcd_puts(int x, int y, const unsigned char *string)
334 319
335 tmp[i] = 0; 320 tmp[i] = 0;
336 321
337 DEBUGF("lcd_puts(%d, %d) -> ", x, y);
338 scroll[y].mode=SCROLL_MODE_OFF; 322 scroll[y].mode=SCROLL_MODE_OFF;
339 return lcd_puts_cont_scroll(x, y, tmp); 323 return lcd_puts_cont_scroll(x, y, tmp);
340} 324}
@@ -369,7 +353,6 @@ void lcd_remove_cursor(void)
369void lcd_putc(int x, int y, unsigned short ch) 353void lcd_putc(int x, int y, unsigned short ch)
370{ 354{
371 bool update; 355 bool update;
372 DEBUGF("lcd_putc(%d, %d, %d '0x%02x')\n", x, y, ch, ch);
373 if (x<0 || y<0) { 356 if (x<0 || y<0) {
374 return; 357 return;
375 } 358 }
@@ -659,8 +642,6 @@ void lcd_puts_scroll(int x, int y, const unsigned char* string )
659 tmp[i] = 0; 642 tmp[i] = 0;
660 643
661 644
662 DEBUGF("lcd_puts_scroll(%d, %d, %s)\n", x, y, string);
663
664 s = &scroll[y]; 645 s = &scroll[y];
665 646
666 lcd_puts_cont_scroll(x,y,tmp); 647 lcd_puts_cont_scroll(x,y,tmp);
@@ -729,13 +710,11 @@ void lcd_scroll_speed(int speed)
729void lcd_scroll_delay(int ms) 710void lcd_scroll_delay(int ms)
730{ 711{
731 scroll_delay = ms / (HZ / 10); 712 scroll_delay = ms / (HZ / 10);
732 DEBUGF("scroll_delay=%d (ms=%d, HZ=%d)\n", scroll_delay, ms, HZ);
733} 713}
734 714
735void lcd_jump_scroll_delay(int ms) 715void lcd_jump_scroll_delay(int ms)
736{ 716{
737 jump_scroll_delay = ms / (HZ / 10); 717 jump_scroll_delay = ms / (HZ / 10);
738 DEBUGF("jump_scroll_delay=%d (ms=%d, HZ=%d)\n", jump_scroll_delay, ms, HZ);
739} 718}
740 719
741static void scroll_thread(void) 720static void scroll_thread(void)