summaryrefslogtreecommitdiffstats
path: root/apps/gui/list.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2011-10-07 17:28:27 +0000
committerThomas Martitz <kugel@rockbox.org>2011-10-07 17:28:27 +0000
commitf86506675e6ad256f10a0b2a73ec39a0768b9f0a (patch)
treecc40d55ac420da7739931e75219d032a8b323064 /apps/gui/list.c
parent0acdc87df4e97a1274a10d97fcbacf5696065cee (diff)
downloadrockbox-f86506675e6ad256f10a0b2a73ec39a0768b9f0a.tar.gz
rockbox-f86506675e6ad256f10a0b2a73ec39a0768b9f0a.tar.bz2
rockbox-f86506675e6ad256f10a0b2a73ec39a0768b9f0a.zip
Re-order things to fix red.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30722 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/list.c')
-rw-r--r--apps/gui/list.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c
index 7fe06f9aad..ca3ae02bbd 100644
--- a/apps/gui/list.c
+++ b/apps/gui/list.c
@@ -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