1
0
Fork 0
forked from len0rd/rockbox

Patch #1379076 by Stephan Wezel - reduce the ticking problem a bit

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8226 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2005-12-13 00:38:53 +00:00
parent 77bf6bf370
commit 48983b23cc

View file

@ -1207,8 +1207,6 @@ static void wps_draw_image(struct gui_wps *gwps, int n)
display->mono_bitmap(data->img[n].ptr, data->img[n].x,
data->img[n].y, data->img[n].w,
data->img[n].h);
display->update_rect(data->img[n].x, data->img[n].y,
data->img[n].w, data->img[n].h);
}
static void wps_display_images(struct gui_wps *gwps, bool always)
{
@ -1654,7 +1652,6 @@ bool gui_wps_refresh(struct gui_wps *gwps, int ffwd_offset,
#ifdef HAVE_LCD_BITMAP
if (update_line) {
wps_display_images(gwps,false);
display->update_rect(0, i*h + offset, display->width, h);
}
#endif
}
@ -1662,7 +1659,7 @@ bool gui_wps_refresh(struct gui_wps *gwps, int ffwd_offset,
#ifdef HAVE_LCD_BITMAP
/* Display all images */
wps_display_images(gwps,true);
display->update();
/* Now we know wether the peak meter is used.
So we can enable / disable the peak meter thread */
data->peak_meter_enabled = enable_pm;
@ -2115,10 +2112,6 @@ bool gui_wps_display(void)
FOR_NB_SCREENS(i)
{
gui_wps_refresh(&gui_wps[i], 0, WPS_REFRESH_ALL);
#ifdef HAVE_LCD_BITMAP
gui_wps[i].display->update();
#endif
}
return false;
}