Fix FS#10215 - peakmeter updates breaks scrolling lines in conditionally enalbed viewports... fix is to not disable conditional viewports during these updates which are *only* touching the pm token anyway

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24090 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2009-12-21 06:35:31 +00:00
parent 6643a3bc74
commit ae08a21b42

View file

@ -920,7 +920,12 @@ static bool skin_redraw(struct gui_wps *gwps, unsigned refresh_mode)
}
#endif
/* disable any viewports which are conditionally displayed */
/* disable any viewports which are conditionally displayed.
* If we are only refreshing the peak meter then don't change the viewport
* enabled flags as this will stop scrolling. viewports cant be
* toggled in this refresh mode anyway (FS#10215)*/
if (refresh_mode != WPS_REFRESH_PEAK_METER)
{
for (viewport_list = data->viewports;
viewport_list; viewport_list = viewport_list->next)
{
@ -938,6 +943,7 @@ static bool skin_redraw(struct gui_wps *gwps, unsigned refresh_mode)
skin_viewport->hidden_flags |= VP_DRAW_HIDDEN;
}
}
}
int viewport_count = 0;
for (viewport_list = data->viewports;
viewport_list; viewport_list = viewport_list->next, viewport_count++)