1
0
Fork 0
forked from len0rd/rockbox

Removed lcd_scroll_pause() and lcd_scroll_resume().

lcd_stop_scroll() doesn't redraw the screen anymore.
lcd_clear_display() stops and forgets all scrolls.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3153 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Kjell Ericson 2003-01-23 14:24:52 +00:00
parent 1b71742d35
commit f5d9584eac
3 changed files with 25 additions and 167 deletions

View file

@ -506,65 +506,6 @@ void lcd_stop_scroll(void)
lcd_update();
}
void lcd_stop_scroll_line(int line)
{
struct scrollinfo* s;
s = &scroll[line];
if ( s->mode == SCROLL_MODE_RUN ||
s->mode == SCROLL_MODE_PAUSE ) {
/* restore scrolled row */
lcd_puts(s->startx, s->starty, s->text);
}
lcd_update();
}
void lcd_scroll_pause(void)
{
struct scrollinfo* s;
int index;
for ( index = 0; index < SCROLLABLE_LINES; index++ ) {
s = &scroll[index];
if ( s->mode == SCROLL_MODE_RUN ) {
s->mode = SCROLL_MODE_PAUSE;
}
}
}
void lcd_scroll_pause_line(int line)
{
struct scrollinfo* s;
s = &scroll[line];
if ( s->mode == SCROLL_MODE_RUN ) {
s->mode = SCROLL_MODE_PAUSE;
}
}
void lcd_scroll_resume(void)
{
struct scrollinfo* s;
int index;
for ( index = 0; index < SCROLLABLE_LINES; index++ ) {
s = &scroll[index];
if ( s->mode == SCROLL_MODE_PAUSE ) {
s->mode = SCROLL_MODE_RUN;
}
}
}
void lcd_scroll_resume_line(int line)
{
struct scrollinfo* s;
s = &scroll[line];
if (s->mode == SCROLL_MODE_PAUSE ) {
s->mode = SCROLL_MODE_RUN;
}
}
void lcd_allow_bidirectional_scrolling(bool on)
{