summaryrefslogtreecommitdiff
path: root/apps/gui/list.c
diff options
context:
space:
mode:
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)
95 95
96static void list_init_viewports(struct gui_synclist *list) 96static void list_init_viewports(struct gui_synclist *list)
97{ 97{
98 int parent_used; 98 bool parent_used = (*list->parent == &parent[SCREEN_MAIN]);
99 99
100 parent_used = (*list->parent != &parent[SCREEN_MAIN]); 100 if (parent_used)
101
102 if (!parent_used)
103 { 101 {
104 FOR_NB_SCREENS(i) 102 FOR_NB_SCREENS(i)
105 { 103 {