diff options
author | Teruaki Kawashima <teru@rockbox.org> | 2010-08-27 13:50:19 +0000 |
---|---|---|
committer | Teruaki Kawashima <teru@rockbox.org> | 2010-08-27 13:50:19 +0000 |
commit | 9067fe30313412dfa454bfeac64f409d0d1b96e5 (patch) | |
tree | 207bfcbb1adef93103c7c86b2ed6608f0df89c30 /apps | |
parent | 0f939d5d11fbc0e211e0006c524754c33b1fea37 (diff) | |
download | rockbox-9067fe30313412dfa454bfeac64f409d0d1b96e5.tar.gz rockbox-9067fe30313412dfa454bfeac64f409d0d1b96e5.zip |
tweak lrcplayer.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27908 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/lrcplayer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/plugins/lrcplayer.c b/apps/plugins/lrcplayer.c index 9f43849d5b..c31b607414 100644 --- a/apps/plugins/lrcplayer.c +++ b/apps/plugins/lrcplayer.c @@ -36,7 +36,7 @@ /* #define LRC_DEBUG */ enum lrc_screen { - PLUGIN_OTHER = 10, + PLUGIN_OTHER = 0x200, LRC_GOTO_MAIN, LRC_GOTO_MENU, LRC_GOTO_EDITOR, @@ -1719,14 +1719,14 @@ static int display_lrc_line(struct lrc_line *lrc_line, int ypos, int i) if (current.wipe && active_line && len >= 3500) { elapsed = rin * vp_lyrics[i].width / len; + set_to_inactive(display); + display->fillrect(elapsed, ypos+font_ui_height/4+1, + vp_lyrics[i].width-elapsed-1, font_ui_height/2-2); set_to_active(display); display->drawrect(0, ypos+font_ui_height/4, vp_lyrics[i].width, font_ui_height/2); display->fillrect(1, ypos+font_ui_height/4+1, elapsed-1, font_ui_height/2-2); - set_to_inactive(display); - display->fillrect(elapsed, ypos+font_ui_height/4+1, - vp_lyrics[i].width-elapsed-1, font_ui_height/2-2); set_to_default(display); } return ypos + font_ui_height; @@ -2937,7 +2937,7 @@ enum plugin_status plugin_start(const void* parameter) if (!ext) ext = current.lrc_file; for (current.type = 0; current.type < NUM_TYPES; current.type++) { - if (!rb->strcmp(ext, extentions[current.type])) + if (!rb->strcasecmp(ext, extentions[current.type])) break; } if (current.type == NUM_TYPES) |