forked from len0rd/rockbox
Re-order things to fix red.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30722 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0acdc87df4
commit
f86506675e
1 changed files with 7 additions and 8 deletions
|
|
@ -61,6 +61,11 @@ void list_draw(struct screen *display, struct gui_synclist *list);
|
|||
static long last_dirty_tick;
|
||||
static struct viewport parent[NB_SCREENS];
|
||||
|
||||
static bool list_is_dirty(struct gui_synclist *list)
|
||||
{
|
||||
return TIME_BEFORE(list->dirty_tick, last_dirty_tick);
|
||||
}
|
||||
|
||||
static void list_force_reinit(void *param)
|
||||
{
|
||||
(void)param;
|
||||
|
|
@ -109,6 +114,7 @@ static struct viewport parent[NB_SCREENS] =
|
|||
};
|
||||
|
||||
#define list_init_viewports(a)
|
||||
#define list_is_dirty(a) false
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
|
|
@ -229,24 +235,17 @@ int gui_list_get_item_offset(struct gui_synclist * gui_list,
|
|||
}
|
||||
#endif
|
||||
|
||||
static bool is_dirty(struct gui_synclist *list)
|
||||
{
|
||||
return TIME_BEFORE(list->dirty_tick, last_dirty_tick);
|
||||
}
|
||||
|
||||
/*
|
||||
* Force a full screen update.
|
||||
*/
|
||||
void gui_synclist_draw(struct gui_synclist *gui_list)
|
||||
{
|
||||
int i;
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
if (is_dirty(gui_list))
|
||||
if (list_is_dirty(gui_list))
|
||||
{
|
||||
list_init_viewports(gui_list);
|
||||
gui_synclist_select_item(gui_list, gui_list->selected_item);
|
||||
}
|
||||
#endif
|
||||
FOR_NB_SCREENS(i)
|
||||
{
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue