diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-04-14 09:47:47 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-04-14 09:47:47 +0000 |
commit | 0b7bb31453762f354af30210d1981f5dec3cdc19 (patch) | |
tree | 2af3ee3a98a3e9e2179421a367f12d2b97f7320d /apps | |
parent | 9bfa237869ec3a75776926de7ffd4e7a1c4e03b9 (diff) |
Simplification, queue pointers don't wrap (except at INT_MAX, but the calculation is still correct in this case). Implemented queue_count() for the simulator.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13154 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/gui/list.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c index bd63021369..e3b0d6afe5 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c @@ -943,9 +943,7 @@ unsigned gui_synclist_do_button(struct gui_synclist * lists, case ACTION_STD_PREV: case ACTION_STD_PREVREPEAT: gui_synclist_select_previous(lists); -#ifndef SIMULATOR if (queue_count(&button_queue) < FRAMEDROP_TRIGGER) -#endif gui_synclist_draw(lists); yield(); return ACTION_STD_PREV; @@ -953,9 +951,7 @@ unsigned gui_synclist_do_button(struct gui_synclist * lists, case ACTION_STD_NEXT: case ACTION_STD_NEXTREPEAT: gui_synclist_select_next(lists); -#ifndef SIMULATOR if (queue_count(&button_queue) < FRAMEDROP_TRIGGER) -#endif gui_synclist_draw(lists); yield(); return ACTION_STD_NEXT; |