forked from len0rd/rockbox
Removed more dead code; bugfix for cursor display in player simulator.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6429 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2629071b25
commit
ba4df32100
2 changed files with 6 additions and 8 deletions
|
@ -96,7 +96,6 @@ static char scroll_ticks = 12; /* # of ticks between updates */
|
||||||
static int scroll_delay = HZ/2; /* delay before starting scroll */
|
static int scroll_delay = HZ/2; /* delay before starting scroll */
|
||||||
static int jump_scroll_delay = HZ/4; /* delay between jump scroll jumps */
|
static int jump_scroll_delay = HZ/4; /* delay between jump scroll jumps */
|
||||||
static char scroll_spacing = 3; /* spaces between end and start of text */
|
static char scroll_spacing = 3; /* spaces between end and start of text */
|
||||||
static bool allow_bidirectional_scrolling = true;
|
|
||||||
static int bidir_limit = 50; /* percent */
|
static int bidir_limit = 50; /* percent */
|
||||||
static int jump_scroll = 0; /* 0=off, 1=once, ..., JUMP_SCROLL_ALWAYS */
|
static int jump_scroll = 0; /* 0=off, 1=once, ..., JUMP_SCROLL_ALWAYS */
|
||||||
|
|
||||||
|
@ -700,12 +699,6 @@ void lcd_stop_scroll(void)
|
||||||
lcd_update();
|
lcd_update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void lcd_allow_bidirectional_scrolling(bool on)
|
|
||||||
{
|
|
||||||
allow_bidirectional_scrolling=on;
|
|
||||||
}
|
|
||||||
|
|
||||||
static const char scroll_tick_table[16] = {
|
static const char scroll_tick_table[16] = {
|
||||||
/* Hz values:
|
/* Hz values:
|
||||||
1, 1.25, 1.55, 2, 2.5, 3.12, 4, 5, 6.25, 8.33, 10, 12.5, 16.7, 20, 25, 33 */
|
1, 1.25, 1.55, 2, 2.5, 3.12, 4, 5, 6.25, 8.33, 10, 12.5, 16.7, 20, 25, 33 */
|
||||||
|
@ -833,8 +826,14 @@ static void scroll_thread(void)
|
||||||
cursor.textpos++;
|
cursor.textpos++;
|
||||||
if (cursor.textpos>=cursor.len)
|
if (cursor.textpos>=cursor.len)
|
||||||
cursor.textpos=0;
|
cursor.textpos=0;
|
||||||
|
#ifdef SIMULATOR
|
||||||
|
lcdx_putc(cursor.x_pos, cursor.y_pos,
|
||||||
|
cursor.text[cursor.textpos]);
|
||||||
|
update=true;
|
||||||
|
#else
|
||||||
update|=lcdx_putc(cursor.x_pos, cursor.y_pos,
|
update|=lcdx_putc(cursor.x_pos, cursor.y_pos,
|
||||||
cursor.text[cursor.textpos]);
|
cursor.text[cursor.textpos]);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (update) {
|
if (update) {
|
||||||
|
|
|
@ -98,7 +98,6 @@ extern void lcd_jump_scroll (int mode); /* 0=off, 1=once, ..., ALWAYS */
|
||||||
extern void lcd_jump_scroll_delay( int ms );
|
extern void lcd_jump_scroll_delay( int ms );
|
||||||
unsigned char lcd_get_locked_pattern(void);
|
unsigned char lcd_get_locked_pattern(void);
|
||||||
void lcd_unlock_pattern(unsigned char pat);
|
void lcd_unlock_pattern(unsigned char pat);
|
||||||
void lcd_allow_bidirectional_scrolling(bool on);
|
|
||||||
extern void lcd_bidir_scroll(int threshold);
|
extern void lcd_bidir_scroll(int threshold);
|
||||||
void lcd_put_cursor(int x, int y, char cursor_char);
|
void lcd_put_cursor(int x, int y, char cursor_char);
|
||||||
void lcd_remove_cursor(void);
|
void lcd_remove_cursor(void);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue