diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2011-10-22 10:06:48 +0000 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2011-10-22 10:06:48 +0000 |
| commit | 09d0b6fec4988677b3bb4f73a13dd4fa961c3f5a (patch) | |
| tree | 4cbcf37de4cab1a14106d3fbf522b51560b69a7a | |
| parent | 6f8564987f4b00db561aff12d55949a29a53c6b1 (diff) | |
| download | rockbox-09d0b6fec4988677b3bb4f73a13dd4fa961c3f5a.zip rockbox-09d0b6fec4988677b3bb4f73a13dd4fa961c3f5a.tar.gz rockbox-09d0b6fec4988677b3bb4f73a13dd4fa961c3f5a.tar.bz2 rockbox-09d0b6fec4988677b3bb4f73a13dd4fa961c3f5a.tar.xz | |
Fix backwardly named variable.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30823 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/gui/list.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c index 66c3438..e05e440 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) { |