From 56f7202328e5f6dd8faf2c634d6152e3f5717951 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Stenberg?= Date: Wed, 29 May 2002 16:29:17 +0000 Subject: [PATCH] Stopped writting outsite screen. Removed LCD_ASCII macro. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@801 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/lcd.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/firmware/drivers/lcd.c b/firmware/drivers/lcd.c index 18bf9d54ba..7d53021206 100644 --- a/firmware/drivers/lcd.c +++ b/firmware/drivers/lcd.c @@ -46,7 +46,6 @@ # define LCD_PRAM ((char)0x80) /* Patterns */ # define LCD_IRAM ((char)0xE0) /* Icons */ #endif -#define LCD_ASCII(c) (lcd_ascii[(c)&255]) #define LCD_CURSOR(x,y) ((char)(LCD_CRAM+((y)*16+(x)))) #define LCD_ICON(i) ((char)(LCD_IRAM+i)) @@ -331,14 +330,14 @@ void lcd_clear_display(void) int i; lcd_write(true,LCD_CURSOR(0,0)); for (i=0;i<32;i++) - lcd_write(false,0); + lcd_write(false,lcd_ascii[' ']); } void lcd_puts(int x, int y, char *string) { lcd_write(true,LCD_CURSOR(x,y)); - while (*string) - lcd_write(false,LCD_ASCII(*string++)); + while (*string && x++<11) + lcd_write(false,lcd_ascii[*string++]); } void lcd_define_pattern (int which,char *pattern,int length)