diff options
author | Robert Kukla <roolku@rockbox.org> | 2007-03-04 16:09:18 +0000 |
---|---|---|
committer | Robert Kukla <roolku@rockbox.org> | 2007-03-04 16:09:18 +0000 |
commit | 23c136c892067a2bb44ee2085e0c950f02b28566 (patch) | |
tree | 90c89037d59de0c05aa27605e86fac095e9c342b /apps/gui/gwps-common.c | |
parent | 38b64f7b4b159148ccd0071b18acf4e174d3693e (diff) | |
download | rockbox-23c136c892067a2bb44ee2085e0c950f02b28566.tar.gz rockbox-23c136c892067a2bb44ee2085e0c950f02b28566.zip |
don't restart the whole wps to essentially update the display of runtime info, but make the concerned tags dynamic. Now scrolling is not restarted at end of buffering.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12592 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/gwps-common.c')
-rw-r--r-- | apps/gui/gwps-common.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index b321d3b133..2f86c9dedb 100644 --- a/apps/gui/gwps-common.c +++ b/apps/gui/gwps-common.c | |||
@@ -922,11 +922,12 @@ static char* get_tag(struct wps_data* wps_data, | |||
922 | switch(tag[1]) | 922 | switch(tag[1]) |
923 | { | 923 | { |
924 | case 'p': /* Playcount */ | 924 | case 'p': /* Playcount */ |
925 | *flags |= WPS_REFRESH_STATIC; | 925 | *flags |= WPS_REFRESH_DYNAMIC; |
926 | *intval = cid3->playcount+1; | ||
926 | snprintf(buf, buf_size, "%ld", cid3->playcount); | 927 | snprintf(buf, buf_size, "%ld", cid3->playcount); |
927 | return buf; | 928 | return buf; |
928 | case 'r': /* Rating */ | 929 | case 'r': /* Rating */ |
929 | *flags |= WPS_REFRESH_STATIC; | 930 | *flags |= WPS_REFRESH_DYNAMIC; |
930 | *intval = cid3->rating+1; | 931 | *intval = cid3->rating+1; |
931 | snprintf(buf, buf_size, "%d", cid3->rating); | 932 | snprintf(buf, buf_size, "%d", cid3->rating); |
932 | return buf; | 933 | return buf; |