summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-04-06 22:55:00 +0000
committerJens Arnold <amiconn@rockbox.org>2007-04-06 22:55:00 +0000
commitf9b90e91031dbd23fed24e832de4d8d2e15151a0 (patch)
tree964a492f1c4a658ec0ecb82d100ce62d2f6ec93a /firmware
parenta5d7309d96cca974e1524dc746482ab2a26d7395 (diff)
downloadrockbox-f9b90e91031dbd23fed24e832de4d8d2e15151a0.tar.gz
rockbox-f9b90e91031dbd23fed24e832de4d8d2e15151a0.zip
Now charcell displays require lcd_update() for updating the main lcd content like bitmap displays.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13050 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/lcd-charcell.c9
-rw-r--r--firmware/panic.c3
-rw-r--r--firmware/system.c3
3 files changed, 1 insertions, 14 deletions
diff --git a/firmware/drivers/lcd-charcell.c b/firmware/drivers/lcd-charcell.c
index 8219a0b317..efc9aa5b1f 100644
--- a/firmware/drivers/lcd-charcell.c
+++ b/firmware/drivers/lcd-charcell.c
@@ -295,10 +295,7 @@ void lcd_define_pattern(unsigned long ucs, const char *pattern)
295 memcpy(xfont_variable[glyph & 0x7fff], pattern, HW_PATTERN_SIZE); 295 memcpy(xfont_variable[glyph & 0x7fff], pattern, HW_PATTERN_SIZE);
296 pat = glyph_to_pat(glyph); 296 pat = glyph_to_pat(glyph);
297 if (pat != NO_PATTERN) 297 if (pat != NO_PATTERN)
298 {
299 memcpy(lcd_patterns[pat].pattern, pattern, HW_PATTERN_SIZE); 298 memcpy(lcd_patterns[pat].pattern, pattern, HW_PATTERN_SIZE);
300 lcd_update(); //FIXME: remove when lcd_update() calls are checked all over
301 }
302 } 299 }
303} 300}
304 301
@@ -315,8 +312,6 @@ void lcd_clear_display(void)
315 for (x = 0; x < LCD_WIDTH; x++) 312 for (x = 0; x < LCD_WIDTH; x++)
316 for (y = 0; y < LCD_HEIGHT; y++) 313 for (y = 0; y < LCD_HEIGHT; y++)
317 lcd_putxchar(x, y, xspace); 314 lcd_putxchar(x, y, xspace);
318
319 lcd_update(); //FIXME: remove when lcd_update() calls are checked all over
320} 315}
321 316
322/* Put an unicode character at the given position */ 317/* Put an unicode character at the given position */
@@ -326,7 +321,6 @@ void lcd_putc(int x, int y, unsigned long ucs)
326 return; 321 return;
327 322
328 lcd_putxchar(x, y, find_xchar(ucs)); 323 lcd_putxchar(x, y, find_xchar(ucs));
329 lcd_update(); //FIXME: remove when lcd_update() calls are checked all over
330} 324}
331 325
332/* Show cursor (alternating with existing character) at the given position */ 326/* Show cursor (alternating with existing character) at the given position */
@@ -384,7 +378,6 @@ void lcd_putsxy(int x, int y, const unsigned char *str)
384 return; 378 return;
385 379
386 lcd_putsxyofs(x, y, 0, str); 380 lcd_putsxyofs(x, y, 0, str);
387 lcd_update(); //FIXME: remove when lcd_update() calls are checked all over
388} 381}
389 382
390/*** Line oriented text output ***/ 383/*** Line oriented text output ***/
@@ -410,8 +403,6 @@ void lcd_puts_offset(int x, int y, const unsigned char *str, int offset)
410 x = lcd_putsxyofs(x, y, offset, str); 403 x = lcd_putsxyofs(x, y, offset, str);
411 while (x < LCD_WIDTH) 404 while (x < LCD_WIDTH)
412 lcd_putxchar(x++, y, xspace); 405 lcd_putxchar(x++, y, xspace);
413
414 lcd_update(); //FIXME: remove when lcd_update() calls are checked all over
415} 406}
416 407
417/** scrolling **/ 408/** scrolling **/
diff --git a/firmware/panic.c b/firmware/panic.c
index c50bd54457..f9d1cd3083 100644
--- a/firmware/panic.c
+++ b/firmware/panic.c
@@ -74,11 +74,10 @@ void panicf( const char *fmt, ...)
74 panic_buf[i+18] = c; 74 panic_buf[i+18] = c;
75 } 75 }
76 } 76 }
77 lcd_update();
78
79#else 77#else
80 /* no LCD */ 78 /* no LCD */
81#endif 79#endif
80 lcd_update();
82 DEBUGF(panic_buf); 81 DEBUGF(panic_buf);
83 82
84 set_cpu_frequency(0); 83 set_cpu_frequency(0);
diff --git a/firmware/system.c b/firmware/system.c
index f8fd73d11d..02d14e3ee6 100644
--- a/firmware/system.c
+++ b/firmware/system.c
@@ -452,10 +452,7 @@ void UIE (unsigned int pc) /* Unexpected Interrupt or Exception */
452 lcd_puts(0,0,str); 452 lcd_puts(0,0,str);
453 snprintf(str,sizeof(str),"at %08x",pc); 453 snprintf(str,sizeof(str),"at %08x",pc);
454 lcd_puts(0,1,str); 454 lcd_puts(0,1,str);
455
456#ifdef HAVE_LCD_BITMAP
457 lcd_update (); 455 lcd_update ();
458#endif
459 456
460 while (1) 457 while (1)
461 { 458 {