summaryrefslogtreecommitdiffstats
path: root/apps/gui/list.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2011-10-22 10:06:48 +0000
committerThomas Martitz <kugel@rockbox.org>2011-10-22 10:06:48 +0000
commit09d0b6fec4988677b3bb4f73a13dd4fa961c3f5a (patch)
tree4cbcf37de4cab1a14106d3fbf522b51560b69a7a /apps/gui/list.c
parent6f8564987f4b00db561aff12d55949a29a53c6b1 (diff)
downloadrockbox-09d0b6fec4988677b3bb4f73a13dd4fa961c3f5a.tar.gz
rockbox-09d0b6fec4988677b3bb4f73a13dd4fa961c3f5a.tar.bz2
rockbox-09d0b6fec4988677b3bb4f73a13dd4fa961c3f5a.zip
Fix backwardly named variable.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30823 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/list.c')
-rw-r--r--apps/gui/list.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c
index 66c3438574..e05e44008b 100644
--- a/apps/gui/list.c
+++ b/apps/gui/list.c
@@ -95,11 +95,9 @@ static int list_line_height(const struct viewport *vp)
static void list_init_viewports(struct gui_synclist *list)
{
- int parent_used;
+ bool parent_used = (*list->parent == &parent[SCREEN_MAIN]);
- parent_used = (*list->parent != &parent[SCREEN_MAIN]);
-
- if (!parent_used)
+ if (parent_used)
{
FOR_NB_SCREENS(i)
{