summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2017-09-07 10:38:15 +0200
committerFrank Gevaerts <frank@gevaerts.be>2017-09-07 10:38:42 +0200
commit28591f2e92cff7edb8da4339b61b15305419863a (patch)
tree5d87051b544daf78d8fb649422eefc7eeab06e8f
parente6de6c107ebfff8488775707929ab3de49a1b2f8 (diff)
downloadrockbox-28591f2e92cff7edb8da4339b61b15305419863a.tar.gz
rockbox-28591f2e92cff7edb8da4339b61b15305419863a.tar.bz2
rockbox-28591f2e92cff7edb8da4339b61b15305419863a.zip
Explicitly provide both cases in conditional (fixes warning)
Change-Id: Iedca64432103af5407a7c7bac83e92ca1ae8992b
-rw-r--r--apps/gui/bitmap/list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c
index 97eefce9db..2d3141b8cc 100644
--- a/apps/gui/bitmap/list.c
+++ b/apps/gui/bitmap/list.c
@@ -311,7 +311,7 @@ void list_draw(struct screen *display, struct gui_synclist *list)
#endif
linedes.style = style;
- linedes.scroll = is_selected ?: list->scroll_all;
+ linedes.scroll = is_selected ? true : list->scroll_all;
linedes.line = i % list->selected_size;
/* the list can have both, one of or neither of cursor and item icons,