summaryrefslogtreecommitdiffstats
path: root/apps/gui/list.c
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2009-10-18 15:50:30 +0000
committerBertrik Sikken <bertrik@sikken.nl>2009-10-18 15:50:30 +0000
commitd24d885aa42b5087d89f12dabad13895051da4e2 (patch)
tree61584fe54660aab9a57bcb67c5a65cb888f4a38b /apps/gui/list.c
parent1c64a4d3e0a4ae2f4eb537f00c7dc4372ca5df88 (diff)
downloadrockbox-d24d885aa42b5087d89f12dabad13895051da4e2.tar.gz
rockbox-d24d885aa42b5087d89f12dabad13895051da4e2.tar.bz2
rockbox-d24d885aa42b5087d89f12dabad13895051da4e2.zip
Use wrap-safe TIME_BEFORE/TIME_AFTER macros to compare times with current_time, instead of comparing them directly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23246 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/list.c')
-rw-r--r--apps/gui/list.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c
index d7ecdccd30..a9d8ff6d9b 100644
--- a/apps/gui/list.c
+++ b/apps/gui/list.c
@@ -599,8 +599,7 @@ bool gui_synclist_do_button(struct gui_synclist * lists,
{
if (!last_accel_tick)
last_accel_tick = current_tick + start_delay;
- else if (current_tick >=
- last_accel_tick + accel_wait)
+ else if (TIME_AFTER(current_tick, last_accel_tick + accel_wait))
{
last_accel_tick = current_tick;
next_item_modifier++;