1
0
Fork 0
forked from len0rd/rockbox

Explicitly provide both cases in conditional (fixes warning)

Change-Id: Iedca64432103af5407a7c7bac83e92ca1ae8992b
This commit is contained in:
Frank Gevaerts 2017-09-07 10:38:15 +02:00
parent e6de6c107e
commit 28591f2e92

View file

@ -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,