diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-09-02 13:37:33 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-09-02 13:37:33 +0000 |
commit | acf14e05693125d3768de80d99d7cfff6c2b164a (patch) | |
tree | 3fed6569b7db69f6b8befcf24d5df9312cf4d437 /apps | |
parent | b3050e90459849cacfbad6f3109d884cee9bbcaf (diff) | |
download | rockbox-acf14e05693125d3768de80d99d7cfff6c2b164a.tar.gz rockbox-acf14e05693125d3768de80d99d7cfff6c2b164a.zip |
The WPS didn't update the bitmaps when it was supposed to
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7455 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/wps-display.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/apps/wps-display.c b/apps/wps-display.c index d43c47b5c2..9cb9e9601f 100644 --- a/apps/wps-display.c +++ b/apps/wps-display.c | |||
@@ -127,6 +127,7 @@ static void wps_display_images(void) { | |||
127 | for (n = 0; n < MAX_IMAGES; n++) { | 127 | for (n = 0; n < MAX_IMAGES; n++) { |
128 | if (img[n].loaded && img[n].display) { | 128 | if (img[n].loaded && img[n].display) { |
129 | lcd_mono_bitmap(img[n].ptr, img[n].x, img[n].y, img[n].w, img[n].h); | 129 | lcd_mono_bitmap(img[n].ptr, img[n].x, img[n].y, img[n].w, img[n].h); |
130 | lcd_update_rect(img[n].x, img[n].y, img[n].w, img[n].h); | ||
130 | } | 131 | } |
131 | } | 132 | } |
132 | lcd_set_drawmode(DRMODE_SOLID); | 133 | lcd_set_drawmode(DRMODE_SOLID); |
@@ -948,7 +949,7 @@ static void format_display(char* buf, | |||
948 | int n; | 949 | int n; |
949 | /* Set images to not to be displayed */ | 950 | /* Set images to not to be displayed */ |
950 | for (n = 0; n < MAX_IMAGES; n++) { | 951 | for (n = 0; n < MAX_IMAGES; n++) { |
951 | img[n].display = img[n].always_display?true:false; | 952 | img[n].display = false; |
952 | } | 953 | } |
953 | #endif | 954 | #endif |
954 | 955 | ||
@@ -1498,12 +1499,19 @@ bool wps_refresh(struct mp3entry* id3, | |||
1498 | } | 1499 | } |
1499 | #ifdef HAVE_LCD_BITMAP | 1500 | #ifdef HAVE_LCD_BITMAP |
1500 | if (update_line) { | 1501 | if (update_line) { |
1501 | wps_display_images(); | ||
1502 | lcd_update_rect(0, i*h + offset, LCD_WIDTH, h); | 1502 | lcd_update_rect(0, i*h + offset, LCD_WIDTH, h); |
1503 | wps_display_images(); | ||
1503 | } | 1504 | } |
1504 | #endif | 1505 | #endif |
1505 | } | 1506 | } |
1507 | |||
1506 | #ifdef HAVE_LCD_BITMAP | 1508 | #ifdef HAVE_LCD_BITMAP |
1509 | /* Display images marked as "always display" */ | ||
1510 | for (i = 0; i < MAX_IMAGES; i++) { | ||
1511 | img[i].display = img[i].always_display; | ||
1512 | } | ||
1513 | wps_display_images(); | ||
1514 | |||
1507 | /* Now we know wether the peak meter is used. | 1515 | /* Now we know wether the peak meter is used. |
1508 | So we can enable / disable the peak meter thread */ | 1516 | So we can enable / disable the peak meter thread */ |
1509 | peak_meter_enabled = enable_pm; | 1517 | peak_meter_enabled = enable_pm; |