diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-06-25 14:21:06 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-06-25 14:21:06 +0000 |
commit | 593605f8eeead398dfcf7311e0a30e1398231b79 (patch) | |
tree | 998be225ee862e79a06c44c3cd07b69c77b2a057 | |
parent | 417685fff3d5cffebc5c33420172cb43bc984037 (diff) |
Working while-playing-screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1186 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/tree.c | 11 | ||||
-rw-r--r-- | firmware/mpeg.c | 7 |
2 files changed, 9 insertions, 9 deletions
diff --git a/apps/tree.c b/apps/tree.c index b43c1d725d..a071ce73d6 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -358,6 +358,7 @@ bool dirbrowse(char *root) break; case BUTTON_ON: + lcd_stop_scroll(); wps_show(); restore = true; break; @@ -370,13 +371,11 @@ bool dirbrowse(char *root) numentries = showdir(currdir, start); put_cursorxy(0, CURSOR_Y + LINE_Y+dircursor, true); } - else { - lcd_stop_scroll(); - if ( numentries ) - lcd_puts_scroll(LINE_X, LINE_Y+dircursor, - dircacheptr[start+dircursor]->name); - } + lcd_stop_scroll(); + if ( numentries ) + lcd_puts_scroll(LINE_X, LINE_Y+dircursor, + dircacheptr[start+dircursor]->name); lcd_update(); } diff --git a/firmware/mpeg.c b/firmware/mpeg.c index 41be070a6e..c21997e701 100644 --- a/firmware/mpeg.c +++ b/firmware/mpeg.c @@ -283,12 +283,13 @@ void DEI3(void) /* will we move across the track boundary? */ if (( mp3buf_read <= id3tags[0].mempos ) && - ( mp3buf_read + last_dma_chunk_size > id3tags[0].mempos )) { + ( (mp3buf_read + last_dma_chunk_size) > id3tags[0].mempos )) { /* shift array so index 0 is current track */ int i; - for (i=0; i<MAX_ID3_TAGS-1; i++) + for (i=0; i<last_tag-1; i++) id3tags[i] = id3tags[i+1]; - last_tag--; + if ( last_tag ) + last_tag--; } } else |