forked from len0rd/rockbox
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
This commit is contained in:
parent
5d75f7e718
commit
75361e5e44
2 changed files with 3 additions and 3 deletions
|
|
@ -264,6 +264,7 @@ void lcd_clear_display(void)
|
||||||
int i;
|
int i;
|
||||||
bool update=false;
|
bool update=false;
|
||||||
DEBUGF("lcd_clear_display()\n");
|
DEBUGF("lcd_clear_display()\n");
|
||||||
|
lcd_stop_scroll();
|
||||||
for (i=0;i<22;i++)
|
for (i=0;i<22;i++)
|
||||||
update|=lcdx_putc(i%11, i/11, ' ');
|
update|=lcdx_putc(i%11, i/11, ' ');
|
||||||
if (update)
|
if (update)
|
||||||
|
|
|
||||||
|
|
@ -216,6 +216,7 @@ void lcd_roll(int lines)
|
||||||
void lcd_clear_display (void)
|
void lcd_clear_display (void)
|
||||||
{
|
{
|
||||||
memset (lcd_framebuffer, 0, sizeof lcd_framebuffer);
|
memset (lcd_framebuffer, 0, sizeof lcd_framebuffer);
|
||||||
|
lcd_stop_scroll();
|
||||||
}
|
}
|
||||||
|
|
||||||
void lcd_setmargins(int x, int y)
|
void lcd_setmargins(int x, int y)
|
||||||
|
|
@ -290,9 +291,7 @@ void lcd_puts(int x, int y, unsigned char *str)
|
||||||
lcd_putsxy(xpos, ypos, str);
|
lcd_putsxy(xpos, ypos, str);
|
||||||
lcd_clearrect(xpos + w, ypos, LCD_WIDTH - (xpos + w), h);
|
lcd_clearrect(xpos + w, ypos, LCD_WIDTH - (xpos + w), h);
|
||||||
|
|
||||||
#if defined(SIMULATOR) && defined(HAVE_LCD_CHARCELLS)
|
#if defined(SIMULATOR)
|
||||||
/* this function is being used when simulating a charcell LCD and
|
|
||||||
then we update immediately */
|
|
||||||
lcd_update();
|
lcd_update();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue