summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorKjell Ericson <kjell@haxx.se>2003-01-14 13:51:09 +0000
committerKjell Ericson <kjell@haxx.se>2003-01-14 13:51:09 +0000
commit75361e5e44d46adb115bc6f4445f18ea6f4d1019 (patch)
tree25b9041d3385661a4ad840440fbe82cff1d69a12 /firmware
parent5d75f7e718a478e9abab5e94dec925ee22801275 (diff)
downloadrockbox-75361e5e44d46adb115bc6f4445f18ea6f4d1019.tar.gz
rockbox-75361e5e44d46adb115bc6f4445f18ea6f4d1019.zip
Stop scrolling text when lcd_clear_display() has been called.
Added call to lcd_update() for Recorder simulator. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3084 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/lcd-player.c1
-rw-r--r--firmware/drivers/lcd-recorder.c5
2 files changed, 3 insertions, 3 deletions
diff --git a/firmware/drivers/lcd-player.c b/firmware/drivers/lcd-player.c
index ea759544eb..28bbfabd34 100644
--- a/firmware/drivers/lcd-player.c
+++ b/firmware/drivers/lcd-player.c
@@ -264,6 +264,7 @@ void lcd_clear_display(void)
264 int i; 264 int i;
265 bool update=false; 265 bool update=false;
266 DEBUGF("lcd_clear_display()\n"); 266 DEBUGF("lcd_clear_display()\n");
267 lcd_stop_scroll();
267 for (i=0;i<22;i++) 268 for (i=0;i<22;i++)
268 update|=lcdx_putc(i%11, i/11, ' '); 269 update|=lcdx_putc(i%11, i/11, ' ');
269 if (update) 270 if (update)
diff --git a/firmware/drivers/lcd-recorder.c b/firmware/drivers/lcd-recorder.c
index 24c481144f..80d8a9be57 100644
--- a/firmware/drivers/lcd-recorder.c
+++ b/firmware/drivers/lcd-recorder.c
@@ -216,6 +216,7 @@ void lcd_roll(int lines)
216void lcd_clear_display (void) 216void lcd_clear_display (void)
217{ 217{
218 memset (lcd_framebuffer, 0, sizeof lcd_framebuffer); 218 memset (lcd_framebuffer, 0, sizeof lcd_framebuffer);
219 lcd_stop_scroll();
219} 220}
220 221
221void lcd_setmargins(int x, int y) 222void lcd_setmargins(int x, int y)
@@ -290,9 +291,7 @@ void lcd_puts(int x, int y, unsigned char *str)
290 lcd_putsxy(xpos, ypos, str); 291 lcd_putsxy(xpos, ypos, str);
291 lcd_clearrect(xpos + w, ypos, LCD_WIDTH - (xpos + w), h); 292 lcd_clearrect(xpos + w, ypos, LCD_WIDTH - (xpos + w), h);
292 293
293#if defined(SIMULATOR) && defined(HAVE_LCD_CHARCELLS) 294#if defined(SIMULATOR)
294 /* this function is being used when simulating a charcell LCD and
295 then we update immediately */
296 lcd_update(); 295 lcd_update();
297#endif 296#endif
298} 297}