1
0
Fork 0
forked from len0rd/rockbox

Player changes: Added lcd_remove_cursor() and updated the cursor functionality.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3182 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Kjell Ericson 2003-01-29 11:48:35 +00:00
parent fc69875d56
commit 9d40f7ebc4
2 changed files with 20 additions and 8 deletions

View file

@ -315,14 +315,25 @@ void lcd_puts(int x, int y, unsigned char *string)
void lcd_put_cursor(int x, int y, char cursor_char)
{
cursor.text[0]=buffer_xlcd[x][y];
cursor.text[1]=cursor_char;
cursor.len=2;
cursor.textpos=0;
cursor.y_pos=y;
cursor.x_pos=x;
cursor.downcount=0;
cursor.divider=4;
if (cursor.len==0) {
cursor.text[0]=buffer_xlcd[x][y];
cursor.text[1]=cursor_char;
cursor.len=2;
cursor.textpos=0;
cursor.y_pos=y;
cursor.x_pos=x;
cursor.downcount=0;
cursor.divider=4;
}
}
void lcd_remove_cursor(void)
{
if (cursor.len!=0) {
cursor.len=0;
if (lcdx_putc(cursor.x_pos, cursor.y_pos, cursor.text[0]))
lcd_update();
}
}
void lcd_putc(int x, int y, unsigned short ch)